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) -> untyped def child_nodes: () -> untyped def initialize: ((YARP::ConstantReadNode | YARP::ConstantPathNode | nil) 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) -> untyped
This signature was generated using 35 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: () -> untyped
This signature was generated using 41 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).
def initialize: ((YARP::ConstantReadNode | YARP::ConstantPathNode | nil) parent, YARP::ConstantReadNode child, YARP::Location delimiter_loc, YARP::Location location) -> void
This signature was generated using 32 samples from 1 application.
def initialize(parent, child, delimiter_loc, location) @parent = parent @child = child @delimiter_loc = delimiter_loc @location = location end