Class: EdifactConverter::FTXText::Line
- Inherits:
-
Struct
- Object
- Struct
- EdifactConverter::FTXText::Line
- Defined in:
- lib/edifact_converter/ftx_text.rb
Instance Attribute Summary collapse
-
#align ⇒ Object
Returns the value of attribute align.
Instance Method Summary collapse
Instance Attribute Details
#align ⇒ Object
Returns the value of attribute align
5 6 7 |
# File 'lib/edifact_converter/ftx_text.rb', line 5 def align @align end |
Instance Method Details
#==(line) ⇒ Object
15 16 17 |
# File 'lib/edifact_converter/ftx_text.rb', line 15 def ==(line) align == line.align and texts == line.texts end |
#texts ⇒ Object
7 8 9 |
# File 'lib/edifact_converter/ftx_text.rb', line 7 def texts @texts ||= [] end |
#texts=(texts) ⇒ Object
11 12 13 |
# File 'lib/edifact_converter/ftx_text.rb', line 11 def texts=(texts) @texts = texts end |
#to_s ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/edifact_converter/ftx_text.rb', line 19 def to_s txt = "#{align}:\t" texts.each do |text| txt << text.to_s end txt end |