Module: Turnip::Node::HasLocation

Included in:
Base
Defined in:
lib/turnip/node/location.rb

Instance Method Summary collapse

Instance Method Details

#lineObject



29
30
31
# File 'lib/turnip/node/location.rb', line 29

def line
  location.line
end

#locationLocation

Returns:



25
26
27
# File 'lib/turnip/node/location.rb', line 25

def location
  @location ||= Location.new(@raw.source_line, @raw.source_column)
end