Class: Rhales::RueFormatParser::Location
- Inherits:
-
Object
- Object
- Rhales::RueFormatParser::Location
- Defined in:
- lib/rhales/parsers/rue_format_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.
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_column ⇒ Object (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_line ⇒ Object (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_offset ⇒ Object (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_column ⇒ Object (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_line ⇒ Object (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_offset ⇒ Object (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 |