Class: LibRubyParser::Nodes::Irange
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Irange
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents inclusive range (i.e. 2..4)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#left ⇒ Node?
readonly
Begin of the range,
Noneif range has nobegin(i.e...4). -
#operator_l ⇒ Loc
readonly
Location of the
..operator. -
#right ⇒ Node?
readonly
End of the range,
Noneif range has noend(i.e.2..).
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
2..4
~~~~
2187 2188 2189 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2187 def expression_l @expression_l end |
#left ⇒ Node? (readonly)
Begin of the range, None if range has no begin (i.e. ..4)
2165 2166 2167 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2165 def left @left end |
#operator_l ⇒ Loc (readonly)
Location of the .. operator
2..4
~~
2178 2179 2180 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2178 def operator_l @operator_l end |
#right ⇒ Node? (readonly)
End of the range, None if range has no end (i.e. 2..)
2169 2170 2171 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2169 def right @right end |