Class: LibRubyParser::Loc
- Inherits:
-
Object
- Object
- LibRubyParser::Loc
- Defined in:
- lib/lib-ruby-parser.rb
Overview
Representation of any location in the given input
Instance Attribute Summary collapse
-
#begin ⇒ Integer
Begin of the
Loc
range. -
#end ⇒ Integer
End of the
Loc
range.
Instance Method Summary collapse
-
#initialize(**options) ⇒ Loc
constructor
A new instance of Loc.
Constructor Details
#initialize(**options) ⇒ Loc
Returns a new instance of Loc.
19 20 21 22 |
# File 'lib/lib-ruby-parser.rb', line 19 def initialize(**) @begin = [:begin] || 0 @end = [:end] || 0 end |
Instance Attribute Details
#begin ⇒ Integer
Begin of the Loc
range
9 10 11 |
# File 'lib/lib-ruby-parser.rb', line 9 def begin @begin end |
#end ⇒ Integer
End of the Loc
range
14 15 16 |
# File 'lib/lib-ruby-parser.rb', line 14 def end @end end |