Method: Prism::RangeNode#right
- Defined in:
- lib/prism/node.rb
#right ⇒ Object (readonly)
The right-hand side of the range, if present. It can be either ‘nil` or any [non-void expression](github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
..5
^
1...foo
^^^
If neither right-hand or left-hand side was included, this will be a MissingNode.
13571 13572 13573 |
# File 'lib/prism/node.rb', line 13571 def right @right end |