Class: Turnip::Node::Location
- Inherits:
-
Object
- Object
- Turnip::Node::Location
- Defined in:
- lib/turnip/node/location.rb
Overview
Note:
Location metadata generated by Gherkin
line: 10,
column: 3
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
-
#initialize(line, column) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(line, column) ⇒ Location
Returns a new instance of Location.
15 16 17 18 |
# File 'lib/turnip/node/location.rb', line 15 def initialize(line, column) @line = line @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
12 13 14 |
# File 'lib/turnip/node/location.rb', line 12 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
12 13 14 |
# File 'lib/turnip/node/location.rb', line 12 def line @line end |