class YARP::SingletonClassNode

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/yarp/node.rbs

class YARP::SingletonClassNode < YARP::Node
  def accept: (Analyzer::Visitor visitor) -> Array[Array, ]
  def child_nodes: () -> untyped
  def initialize: (Array[] locals, YARP::Location class_keyword_loc, YARP::Location operator_loc, (YARP::SelfNode | YARP::ConstantReadNode) expression, YARP::StatementsNode body, YARP::Location end_keyword_loc, YARP::Location location) -> void
end

^^^^^^^^^^^^^^^^^
class << self end
Represents a singleton class declaration involving the ‘class` keyword.

def accept(visitor)

Experimental RBS support (using type sampling data from the type_fusion project).

def accept: (Analyzer::Visitor visitor) -> Array | Array | NilClass | Array | Array |  | NilClass

This signature was generated using 3 samples from 1 application.

def accept: (visitor: Visitor) -> void
def accept(visitor)
  visitor.visit_singleton_class_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 4 samples from 1 application.

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [expression, body]
end

def class_keyword

def class_keyword: () -> String
def class_keyword
  class_keyword_loc.slice
end

def deconstruct_keys(keys)

def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location]
def deconstruct_keys(keys)
  { locals: locals, class_keyword_loc: class_keyword_loc, operator_loc: operator_loc, expression: expression, body: body, end_keyword_loc: end_keyword_loc, location: location }
end

def end_keyword

def end_keyword: () -> String
def end_keyword
  end_keyword_loc.slice
end

def initialize(locals, class_keyword_loc, operator_loc, expression, body, end_keyword_loc, location)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: ( locals, YARP::Location class_keyword_loc, YARP::Location operator_loc, (YARP::SelfNode | YARP::ConstantReadNode) expression, YARP::StatementsNode body, YARP::Location end_keyword_loc, YARP::Location location) -> void

This signature was generated using 7 samples from 1 application.

def initialize: (locals: Array[Symbol], class_keyword_loc: Location, operator_loc: Location, expression: Node, body: Node?, end_keyword_loc: Location, location: Location) -> void
def initialize(locals, class_keyword_loc, operator_loc, expression, body, end_keyword_loc, location)
  @locals = locals
  @class_keyword_loc = class_keyword_loc
  @operator_loc = operator_loc
  @expression = expression
  @body = body
  @end_keyword_loc = end_keyword_loc
  @location = location
end

def operator

def operator: () -> String
def operator
  operator_loc.slice
end