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 initialize: (Array[] locals, YARP::Location class_keyword_loc, YARP::Location operator_loc, YARP::SelfNode expression, YARP::StatementsNode statements, 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)

def accept: (visitor: Visitor) -> void
def accept(visitor)
  visitor.visit_singleton_class_node(self)
end

def child_nodes

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [expression, statements]
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, statements: statements, 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, statements, 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 expression, YARP::StatementsNode statements, YARP::Location end_keyword_loc, YARP::Location location) -> void

This signature was generated using 1 sample from 1 application.

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

def operator

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