Class: Rhales::RueFormatParser::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/rhales/parsers/rue_format_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start_line:, start_column:, end_line:, end_column:, start_offset:, end_offset:) ⇒ Location

Returns a new instance of Location.



61
62
63
64
65
66
67
68
# File 'lib/rhales/parsers/rue_format_parser.rb', line 61

def initialize(start_line:, start_column:, end_line:, end_column:, start_offset:, end_offset:)
  @start_line   = start_line
  @start_column = start_column
  @end_line     = end_line
  @end_column   = end_column
  @start_offset = start_offset
  @end_offset   = end_offset
end

Instance Attribute Details

#end_columnObject (readonly)

Returns the value of attribute end_column.



59
60
61
# File 'lib/rhales/parsers/rue_format_parser.rb', line 59

def end_column
  @end_column
end

#end_lineObject (readonly)

Returns the value of attribute end_line.



59
60
61
# File 'lib/rhales/parsers/rue_format_parser.rb', line 59

def end_line
  @end_line
end

#end_offsetObject (readonly)

Returns the value of attribute end_offset.



59
60
61
# File 'lib/rhales/parsers/rue_format_parser.rb', line 59

def end_offset
  @end_offset
end

#start_columnObject (readonly)

Returns the value of attribute start_column.



59
60
61
# File 'lib/rhales/parsers/rue_format_parser.rb', line 59

def start_column
  @start_column
end

#start_lineObject (readonly)

Returns the value of attribute start_line.



59
60
61
# File 'lib/rhales/parsers/rue_format_parser.rb', line 59

def start_line
  @start_line
end

#start_offsetObject (readonly)

Returns the value of attribute start_offset.



59
60
61
# File 'lib/rhales/parsers/rue_format_parser.rb', line 59

def start_offset
  @start_offset
end