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) -> untyped def child_nodes: () -> untyped def initialize: ((Array[YARP::AssocSplatNode] | Array[YARP::AssocNode]) 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) -> untyped
This signature was generated using 5 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).
def child_nodes: () -> untyped
This signature was generated using 8 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).
def initialize: (( | YARP::AssocNode) elements, YARP::Location location) -> void
This signature was generated using 4 samples from 1 application.
def initialize(elements, location) @elements = elements @location = location end