Class: Turnip::Node::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/turnip/node/location.rb

Overview

Note:

Location metadata generated by Gherkin

line: 10,
column: 3

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject (readonly)

Returns the value of attribute column.



12
13
14
# File 'lib/turnip/node/location.rb', line 12

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



12
13
14
# File 'lib/turnip/node/location.rb', line 12

def line
  @line
end