class YARP::ConstantPathNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp/node.rbs class YARP::ConstantPathNode < YARP::Node def accept: (Analyzer::Visitor visitor) -> (Array[Array, Array, , Array, ] | Array[Array, ] | Array[NilClass]) def child_nodes: () -> (Array[YARP::ConstantReadNode] | Array[YARP::ConstantPathNode] | Array[NilClass]) type YARP__ConstantPathNode_initialize_parent = YARP::ConstantReadNode | YARP::ConstantPathNode | nil | YARP::CallNode | YARP::LocalVariableReadNode def initialize: (YARP__ConstantPathNode_initialize_parent parent, YARP::ConstantReadNode child, YARP::Location delimiter_loc, YARP::Location location) -> void end
^^^^^^^^
Foo::Bar
Represents accessing a constant through a path of ‘::` operators.
def accept(visitor)
Experimental RBS support (using type sampling data from the type_fusion
project).
def accept: (Analyzer::Visitor visitor) -> Array |
This signature was generated using 89 samples from 1 application.
def accept(visitor) visitor.visit_constant_path_node(self) end
def child_nodes
Experimental RBS support (using type sampling data from the type_fusion
project).
def child_nodes: () -> YARP::ConstantReadNode
This signature was generated using 90 samples from 1 application.
def child_nodes [parent, child] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { parent: parent, child: child, delimiter_loc: delimiter_loc, location: location } end
def delimiter
def delimiter delimiter_loc.slice end
def initialize(parent, child, delimiter_loc, location)
Experimental RBS support (using type sampling data from the type_fusion
project).
type YARP__ConstantPathNode_initialize_parent = YARP::ConstantReadNode | YARP::ConstantPathNode | nil | YARP::CallNode | YARP::LocalVariableReadNode def initialize: (YARP__ConstantPathNode_initialize_parent parent, YARP::ConstantReadNode child, YARP::Location delimiter_loc, YARP::Location location) -> void
This signature was generated using 93 samples from 1 application.
def initialize(parent, child, delimiter_loc, location) @parent = parent @child = child @delimiter_loc = delimiter_loc @location = location end