Skip to content
On this page
class · Ruby 4.0

Prism::RangeNode

< Prism::Node 14 instance methods 2 class methods

Represents the use of the .. or ... operators.

1..2
^^^^

c if a =~ /left/ ... b =~ /right/
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Class methods 2

Instance methods 14

Attributes
Read

The left-hand side of the range, if present. It can be either nil or any non-void expression.

1...
^

hello...goodbye
^^^^^
Read

The right-hand side of the range, if present. It can be either nil or any non-void expression.

..5
  ^

1...foo
    ^^^

If neither right-hand or left-hand side was included, this will be a MissingNode.