class YARP::KeywordHashNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp/node.rbs class YARP::KeywordHashNode < YARP::Node def accept: (Analyzer::Visitor visitor) -> (Array[Array, Array, ] | Array[Array, Array, , Array, ] | Array[Array, Array, , Array, NilClass, Array, Array, Array, , NilClass, NilClass, NilClass]) def child_nodes: () -> (Array[YARP::AssocNode] | Array[YARP::AssocSplatNode]) def initialize: ((Array[YARP::AssocNode] | Array[YARP::AssocSplatNode]) elements, YARP::Location location) -> void end
^^^^
foo(a: b)
Represents a hash literal without opening and closing braces.
def accept(visitor)
Experimental RBS support (using type sampling data from the type_fusion
project).
def accept: (Analyzer::Visitor visitor) -> ( | Array | Array | | Array | | Array | Array | | Array | NilClass | Array | Array | Array | | NilClass | NilClass | NilClass | Array | Array | | Array | NilClass | Array | Array | Array | | NilClass | NilClass | NilClass)
This signature was generated using 29 samples from 1 application.
def accept(visitor) visitor.visit_keyword_hash_node(self) end
def child_nodes
Experimental RBS support (using type sampling data from the type_fusion
project).
type YARP__KeywordHashNode_child_nodes_return_value = YARP::AssocNode | | YARP::AssocNode | YARP::AssocNode | YARP::AssocSplatNode def child_nodes: () -> YARP__KeywordHashNode_child_nodes_return_value
This signature was generated using 32 samples from 1 application.
def child_nodes [*elements] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { elements: elements, location: location } end
def initialize(elements, location)
Experimental RBS support (using type sampling data from the type_fusion
project).
type YARP__KeywordHashNode_initialize_elements = YARP::AssocNode | YARP::AssocNode | | YARP::AssocNode | YARP::AssocNode | YARP::AssocNode | YARP::AssocNode | YARP::AssocNode | YARP::AssocNode | YARP::AssocNode | YARP::AssocNode | YARP::AssocNode | YARP::AssocNode | YARP::AssocNode def initialize: (YARP__KeywordHashNode_initialize_elements elements, YARP::Location location) -> void
This signature was generated using 22 samples from 1 application.
def initialize(elements, location) @elements = elements @location = location end