class YARP::DefNode
Experimental RBS support (using type sampling data from the type_fusion project).
# sig/yarp/node.rbs class YARP::DefNode < YARP::Node def initialize: (YARP::Location name_loc, nil receiver, YARP::ParametersNode? parameters, YARP::StatementsNode statements, (Array[Symbol] | Array[]) locals, YARP::Location def_keyword_loc, nil operator_loc, YARP::Location? lparen_loc, YARP::Location? rparen_loc, nil equal_loc, YARP::Location end_keyword_loc, YARP::Location location) -> void end
^^^^^^^^^^
end
def method
Represents a method definition.
def accept(visitor)
def accept(visitor) visitor.visit_def_node(self) end
def child_nodes
def child_nodes [receiver, parameters, statements] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { name_loc: name_loc, receiver: receiver, parameters: parameters, statements: statements, locals: locals, def_keyword_loc: def_keyword_loc, operator_loc: operator_loc, lparen_loc: lparen_loc, rparen_loc: rparen_loc, equal_loc: equal_loc, end_keyword_loc: end_keyword_loc, location: location } end
def def_keyword
def def_keyword def_keyword_loc.slice end
def end_keyword
def end_keyword end_keyword_loc&.slice end
def equal
def equal equal_loc&.slice end
def initialize(name_loc, receiver, parameters, statements, locals, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location)
Experimental RBS support (using type sampling data from the type_fusion project).
def initialize: (YARP::Location name_loc, nil receiver, YARP::ParametersNode? parameters, YARP::StatementsNode statements, (Symbol | Symbol | Symbol | Symbol | Symbol | Symbol | ) locals, YARP::Location def_keyword_loc, nil operator_loc, YARP::Location? lparen_loc, YARP::Location? rparen_loc, nil equal_loc, YARP::Location end_keyword_loc, YARP::Location location) -> void
This signature was generated using 12 samples from 1 application.
def initialize(name_loc, receiver, parameters, statements, locals, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location) @name_loc = name_loc @receiver = receiver @parameters = parameters @statements = statements @locals = locals @def_keyword_loc = def_keyword_loc @operator_loc = operator_loc @lparen_loc = lparen_loc @rparen_loc = rparen_loc @equal_loc = equal_loc @end_keyword_loc = end_keyword_loc @location = location end
def lparen
def lparen lparen_loc&.slice end
def name
def name name_loc.slice end
def operator
def operator operator_loc&.slice end
def rparen
def rparen rparen_loc&.slice end