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[] | Array[YARP::KeywordParameterNode]) keywords, YARP::KeywordRestParameterNode? keyword_rest, YARP::BlockParameterNode? 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 56 samples from 1 application.

def accept: (visitor: Visitor) -> void
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 49 samples from 1 application.

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [*requireds, *optionals, *posts, rest, *keywords, keyword_rest, block]
end

def deconstruct_keys(keys)

def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location]
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).

type YARP__ParametersNode_initialize_requireds =  | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode
type YARP__ParametersNode_initialize_optionals =  | YARP::OptionalParameterNode | YARP::OptionalParameterNode | YARP::OptionalParameterNode | YARP::OptionalParameterNode | YARP::OptionalParameterNode | YARP::OptionalParameterNode

def initialize: (YARP__ParametersNode_initialize_requireds requireds, YARP__ParametersNode_initialize_optionals optionals,  posts, YARP::RestParameterNode? rest, ( | YARP::KeywordParameterNode) keywords, YARP::KeywordRestParameterNode? keyword_rest, YARP::BlockParameterNode? block, YARP::Location location) -> void

This signature was generated using 52 samples from 1 application.

def initialize: (requireds: Array[Node], optionals: Array[Node], posts: Array[Node], rest: Node?, keywords: Array[Node], keyword_rest: Node?, block: Node?, location: Location) -> void
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