Class: SyntaxTree::Index::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/index.rb

Overview

This is a location for an index entry.

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/syntax_tree/index.rb', line 15

def initialize(line, column)
  @line = line
  @column = column
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



13
14
15
# File 'lib/syntax_tree/index.rb', line 13

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



13
14
15
# File 'lib/syntax_tree/index.rb', line 13

def line
  @line
end