class YARP::BlockArgumentNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp/node.rbs class YARP::BlockArgumentNode < YARP::Node def accept: (Analyzer::Visitor visitor) -> Array[Array, ] def child_nodes: () -> (Array[YARP::SymbolNode] | Array[YARP::LocalVariableReadNode]) def initialize: ((YARP::LocalVariableReadNode | YARP::SymbolNode) expression, YARP::Location operator_loc, YARP::Location location) -> void end
^^^^^^^^^^
bar(&args)
Represents block method arguments.
def accept(visitor)
Experimental RBS support (using type sampling data from the type_fusion
project).
def accept: (Analyzer::Visitor visitor) ->
This signature was generated using 19 samples from 1 application.
def accept(visitor) visitor.visit_block_argument_node(self) end
def child_nodes
Experimental RBS support (using type sampling data from the type_fusion
project).
def child_nodes: () ->
This signature was generated using 16 samples from 1 application.
def child_nodes [expression] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { expression: expression, operator_loc: operator_loc, location: location } end
def initialize(expression, operator_loc, location)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: ((YARP::LocalVariableReadNode | YARP::SymbolNode) expression, YARP::Location operator_loc, YARP::Location location) -> void
This signature was generated using 20 samples from 1 application.
def initialize(expression, operator_loc, location) @expression = expression @operator_loc = operator_loc @location = location end
def operator
def operator operator_loc.slice end