Class: LibRubyParser::Nodes::Erange
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Erange
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents range literal with excluded end
(i.e. 1...3
)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#left ⇒ Node?
readonly
Begin of the range,
None
if range has no begin (i.e...42
). -
#operator_l ⇒ Loc
readonly
Location of the
...
operator. -
#right ⇒ Node?
readonly
End of the range,
None
if range has no end (i.e42...
).
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
1...3
~~~~~
1411 1412 1413 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1411 def expression_l @expression_l end |
#left ⇒ Node? (readonly)
Begin of the range, None
if range has no begin (i.e ...42
)
1389 1390 1391 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1389 def left @left end |
#operator_l ⇒ Loc (readonly)
Location of the ...
operator
1...3
~~~
1402 1403 1404 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1402 def operator_l @operator_l end |
#right ⇒ Node? (readonly)
End of the range, None
if range has no end (i.e 42...
)
1393 1394 1395 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1393 def right @right end |