Class: EdifactConverter::FTXText::Line

Inherits:
Struct
  • Object
show all
Defined in:
lib/edifact_converter/ftx_text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#alignObject

Returns the value of attribute align

Returns:

  • (Object)

    the current value of 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

#textsObject



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_sObject



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