Class: RubyIndexer::Location

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/ruby_indexer/lib/ruby_indexer/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_columnObject (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_lineObject (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_columnObject (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_lineObject (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