class RBS::Types::ClassSingleton
def ==(other)
def ==(other) other.is_a?(ClassSingleton) && other.name == name end
def has_classish_type?
def has_classish_type? false end
def has_self_type?
def has_self_type? false end
def hash
def hash self.class.hash ^ name.hash end
def initialize(name:, location:)
def initialize(name:, location:) @name = name @location = location end
def map_type_name(&)
def map_type_name(&) ClassSingleton.new( name: yield(name, location, self), location: location ) end
def to_json(state = _ = nil)
def to_json(state = _ = nil) { class: :class_singleton, name: name, location: location }.to_json(state) end
def to_s(level = 0)
def to_s(level = 0) "singleton(#{name})" end
def with_nonreturn_void?
def with_nonreturn_void? false end