Class: Metanorma::Document::Relaton::FormattedAddress

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/metanorma/document/relaton/formatted_address.rb

Class Method Summary collapse

Class Method Details

.from_lines(lines) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/metanorma/document/relaton/formatted_address.rb', line 18

def self.from_lines(lines)
  new.tap do |fa|
    fa.content = lines
    fa.br = lines[1..].map do
      Metanorma::Document::Components::Inline::BrElement.new
    end
  end
end