class YARP::RangeNode

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/yarp/node.rbs

class YARP::RangeNode < YARP::Node
  def accept: (Analyzer::Visitor visitor) -> (Array[Array, ] | Array[Array, Array, , Array, Array, , NilClass])
  def child_nodes: () -> Array[YARP::IntegerNode]
  def initialize: (YARP::IntegerNode left, (YARP::IntegerNode | YARP::LocalVariableReadNode) right, YARP::Location operator_loc, Integer flags, YARP::Location location) -> void
end

^^^^^^^^^^^^^^^^^^^^^^^^^^^^
c if a =~ /left/ … b =~ /right/
^^^^
1..2
Represents the use of the ‘..` or `…` operators.

def accept(visitor)

Experimental RBS support (using type sampling data from the type_fusion project).

def accept: (Analyzer::Visitor visitor) -> Array |

This signature was generated using 5 samples from 1 application.

def accept: (visitor: Visitor) -> void
def accept(visitor)
  visitor.visit_range_node(self)
end

def child_nodes

Experimental RBS support (using type sampling data from the type_fusion project).

def child_nodes: () -> (YARP::IntegerNode | NilClass)

This signature was generated using 7 samples from 1 application.

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [left, right]
end

def deconstruct_keys(keys)

def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location]
def deconstruct_keys(keys)
  { left: left, right: right, operator_loc: operator_loc, flags: flags, location: location }
end

def exclude_end?

def exclude_end?: () -> bool
def exclude_end?
  flags.anybits?(RangeFlags::EXCLUDE_END)
end

def initialize(left, right, operator_loc, flags, location)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (YARP::IntegerNode left, (YARP::IntegerNode | YARP::LocalVariableReadNode) right, YARP::Location operator_loc, Integer flags, YARP::Location location) -> void

This signature was generated using 6 samples from 1 application.

def initialize: (left: Node?, right: Node?, operator_loc: Location, flags: Integer, location: Location) -> void
def initialize(left, right, operator_loc, flags, location)
  @left = left
  @right = right
  @operator_loc = operator_loc
  @flags = flags
  @location = location
end

def operator

def operator: () -> String
def operator
  operator_loc.slice
end