Class: Rhales::HandlebarsParser::Location
- Inherits:
-
Object
- Object
- Rhales::HandlebarsParser::Location
- Defined in:
- lib/rhales/parsers/handlebars_parser.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.
-
#end_offset ⇒ Object
readonly
Returns the value of attribute end_offset.
-
#start_column ⇒ Object
readonly
Returns the value of attribute start_column.
-
#start_line ⇒ Object
readonly
Returns the value of attribute start_line.
-
#start_offset ⇒ Object
readonly
Returns the value of attribute start_offset.
Instance Method Summary collapse
-
#initialize(start_line:, start_column:, end_line:, end_column:, start_offset:, end_offset:) ⇒ Location
constructor
A new instance of Location.
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_column ⇒ Object (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_line ⇒ Object (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_offset ⇒ Object (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_column ⇒ Object (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_line ⇒ Object (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_offset ⇒ Object (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 |