Class: RBI::Type::AttachedClass

Inherits:
RBI::Type show all
Extended by:
T::Sig
Defined in:
lib/rbi/type.rb

Overview

‘T.attached_class`.

Instance Method Summary collapse

Methods inherited from RBI::Type

all, any, anything, attached_class, boolean, class_of, #eql?, generic, #hash, #initialize, #nilable, nilable, #nilable?, #non_nilable, noreturn, parse_node, parse_string, proc, #rbs_string, self_type, shape, simple, t_class, #to_s, tuple, type_parameter, untyped, void

Constructor Details

This class inherits a constructor from RBI::Type

Instance Method Details

#==(other) ⇒ Object



62
63
64
# File 'lib/rbi/type.rb', line 62

def ==(other)
  AttachedClass === other
end

#to_rbiObject



67
68
69
# File 'lib/rbi/type.rb', line 67

def to_rbi
  "T.attached_class"
end