class YARP::CapturePatternNode
^^^^^^^^^^^^
foo => [bar => baz]
Represents assigning to a local variable in pattern matching.
def accept(visitor)
def accept(visitor) visitor.visit_capture_pattern_node(self) end
def child_nodes
def child_nodes [value, target] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { value: value, target: target, operator_loc: operator_loc, location: location } end
def initialize(value, target, operator_loc, location)
def initialize(value, target, operator_loc, location) @value = value @target = target @operator_loc = operator_loc @location = location end
def operator
def operator operator_loc.slice end