class YARP::ReturnNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp/node.rbs class YARP::ReturnNode < YARP::Node def child_nodes: () -> Array[YARP::ArgumentsNode] end
^^^^^^^^
return 1
Represents the use of the ‘return` keyword.
def accept(visitor)
def accept(visitor) visitor.visit_return_node(self) end
def child_nodes
Experimental RBS support (using type sampling data from the type_fusion
project).
def child_nodes: () ->
This signature was generated using 1 sample from 1 application.
def child_nodes [arguments] end
def comment_targets
def comment_targets [keyword_loc, *arguments] end
def copy(**params)
def copy(**params) ReturnNode.new( params.fetch(:keyword_loc) { keyword_loc }, params.fetch(:arguments) { arguments }, params.fetch(:location) { location }, ) end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { keyword_loc: keyword_loc, arguments: arguments, location: location } end
def initialize(keyword_loc, arguments, location)
def initialize(keyword_loc, arguments, location) @keyword_loc = keyword_loc @arguments = arguments @location = location end
def inspect(inspector = NodeInspector.new)
def inspect(inspector = NodeInspector.new) inspector << inspector.header(self) inspector << "├── keyword_loc: #{inspector.location(keyword_loc)}\n" if (arguments = self.arguments).nil? inspector << "└── arguments: ∅\n" else inspector << "└── arguments:\n" inspector << arguments.inspect(inspector.child_inspector(" ")).delete_prefix(inspector.prefix) end inspector.to_str end
def keyword
def keyword keyword_loc.slice end