Class: RubyIndexer::Location
- Inherits:
-
Object
- Object
- RubyIndexer::Location
- Extended by:
- T::Sig
- Defined in:
- lib/ruby_indexer/lib/ruby_indexer/location.rb
Instance Attribute Summary collapse
-
#end_column ⇒ Object
readonly
Returns the value of attribute end_column.
-
#end_line ⇒ Object
readonly
Returns the value of attribute end_line.
-
#start_column ⇒ Object
readonly
Returns the value of attribute start_column.
-
#start_line ⇒ Object
readonly
Returns the value of attribute start_line.
Instance Method Summary collapse
-
#initialize(start_line, end_line, start_column, end_column) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(start_line, end_line, start_column, end_column) ⇒ Location
19 20 21 22 23 24 |
# File 'lib/ruby_indexer/lib/ruby_indexer/location.rb', line 19 def initialize(start_line, end_line, start_column, end_column) @start_line = start_line @end_line = end_line @start_column = start_column @end_column = end_column end |
Instance Attribute Details
#end_column ⇒ Object (readonly)
Returns the value of attribute end_column.
9 10 11 |
# File 'lib/ruby_indexer/lib/ruby_indexer/location.rb', line 9 def end_column @end_column end |
#end_line ⇒ Object (readonly)
Returns the value of attribute end_line.
9 10 11 |
# File 'lib/ruby_indexer/lib/ruby_indexer/location.rb', line 9 def end_line @end_line end |
#start_column ⇒ Object (readonly)
Returns the value of attribute start_column.
9 10 11 |
# File 'lib/ruby_indexer/lib/ruby_indexer/location.rb', line 9 def start_column @start_column end |
#start_line ⇒ Object (readonly)
Returns the value of attribute start_line.
9 10 11 |
# File 'lib/ruby_indexer/lib/ruby_indexer/location.rb', line 9 def start_line @start_line end |