Class: SyntaxTree::Index::Location
- Inherits:
-
Object
- Object
- SyntaxTree::Index::Location
- Defined in:
- lib/syntax_tree/index.rb
Overview
This is a location for an index entry.
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/syntax_tree/index.rb', line 15 def initialize(line, column) @line = line @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
13 14 15 |
# File 'lib/syntax_tree/index.rb', line 13 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
13 14 15 |
# File 'lib/syntax_tree/index.rb', line 13 def line @line end |