Class: EdifactConverter::EDI2XML11::Position
- Inherits:
-
Object
- Object
- EdifactConverter::EDI2XML11::Position
- Defined in:
- lib/edifact_converter/edi2xml11/position.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(line = 0, column = 0) ⇒ Position
constructor
A new instance of Position.
- #to_s ⇒ Object
Constructor Details
#initialize(line = 0, column = 0) ⇒ Position
Returns a new instance of Position.
6 7 8 |
# File 'lib/edifact_converter/edi2xml11/position.rb', line 6 def initialize(line = 0, column = 0) @line, @column = line, column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
4 5 6 |
# File 'lib/edifact_converter/edi2xml11/position.rb', line 4 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
4 5 6 |
# File 'lib/edifact_converter/edi2xml11/position.rb', line 4 def line @line end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/edifact_converter/edi2xml11/position.rb', line 10 def ==(other) @line == other.line and @column == other.column end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/edifact_converter/edi2xml11/position.rb', line 14 def to_s "At line #{@line}, column #{@column}" end |