class YARP::LambdaNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp/node.rbs class YARP::LambdaNode < YARP::Node def child_nodes: () -> untyped def initialize: (Array[Symbol] locals, YARP::Location opening_loc, YARP::BlockParametersNode parameters, nil statements, YARP::Location location) -> void end
^^^^^^^^^^^^^^^^^^^^^^^
->(value) { value * 2 }
Represents using a lambda literal (not the lambda method call).
def accept(visitor)
def accept(visitor) visitor.visit_lambda_node(self) end
def child_nodes
Experimental RBS support (using type sampling data from the type_fusion
project).
def child_nodes: () -> untyped
This signature was generated using 1 sample from 1 application.
def child_nodes [parameters, statements] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { locals: locals, opening_loc: opening_loc, parameters: parameters, statements: statements, location: location } end
def initialize(locals, opening_loc, parameters, statements, location)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (Symbol | Symbol | Symbol locals, YARP::Location opening_loc, YARP::BlockParametersNode parameters, nil statements, YARP::Location location) -> void
This signature was generated using 1 sample from 1 application.
def initialize(locals, opening_loc, parameters, statements, location) @locals = locals @opening_loc = opening_loc @parameters = parameters @statements = statements @location = location end
def opening
def opening opening_loc.slice end