Class: Rhales::HandlebarsParser::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/rhales/parsers/handlebars_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.



52
53
54
55
56
57
58
59
# File 'lib/rhales/parsers/handlebars_parser.rb', line 52

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.



50
51
52
# File 'lib/rhales/parsers/handlebars_parser.rb', line 50

def end_column
  @end_column
end

#end_lineObject (readonly)

Returns the value of attribute end_line.



50
51
52
# File 'lib/rhales/parsers/handlebars_parser.rb', line 50

def end_line
  @end_line
end

#end_offsetObject (readonly)

Returns the value of attribute end_offset.



50
51
52
# File 'lib/rhales/parsers/handlebars_parser.rb', line 50

def end_offset
  @end_offset
end

#start_columnObject (readonly)

Returns the value of attribute start_column.



50
51
52
# File 'lib/rhales/parsers/handlebars_parser.rb', line 50

def start_column
  @start_column
end

#start_lineObject (readonly)

Returns the value of attribute start_line.



50
51
52
# File 'lib/rhales/parsers/handlebars_parser.rb', line 50

def start_line
  @start_line
end

#start_offsetObject (readonly)

Returns the value of attribute start_offset.



50
51
52
# File 'lib/rhales/parsers/handlebars_parser.rb', line 50

def start_offset
  @start_offset
end