class YARP::ParametersNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp/node.rbs class YARP::ParametersNode < YARP::Node def accept: (Analyzer::Visitor visitor) -> untyped def child_nodes: () -> untyped def initialize: ((Array[YARP::RequiredParameterNode] | Array[]) requireds, (Array[] | Array[YARP::OptionalParameterNode]) optionals, Array[] posts, YARP::RestParameterNode? rest, Array[] keywords, nil keyword_rest, nil block, YARP::Location location) -> void end
end
^^^^^^^
def a(b, c, d)
Represents the list of parameters on a method, block, or lambda definition.
def accept(visitor)
Experimental RBS support (using type sampling data from the type_fusion
project).
def accept: (Analyzer::Visitor visitor) -> untyped
This signature was generated using 10 samples from 1 application.
def accept(visitor) visitor.visit_parameters_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 8 samples from 1 application.
def child_nodes [*requireds, *optionals, *posts, rest, *keywords, keyword_rest, block] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { requireds: requireds, optionals: optionals, posts: posts, rest: rest, keywords: keywords, keyword_rest: keyword_rest, block: block, location: location } end
def initialize(requireds, optionals, posts, rest, keywords, keyword_rest, block, location)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (( | YARP::RequiredParameterNode) requireds, optionals, posts, YARP::RestParameterNode? rest, keywords, nil keyword_rest, nil block, YARP::Location location) -> void
This signature was generated using 8 samples from 1 application.
def initialize(requireds, optionals, posts, rest, keywords, keyword_rest, block, location) @requireds = requireds @optionals = optionals @posts = posts @rest = rest @keywords = keywords @keyword_rest = keyword_rest @block = block @location = location end