Class: RBI::Type::SelfType

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

Overview

‘T.self_type`.

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



107
108
109
# File 'lib/rbi/type.rb', line 107

def ==(other)
  SelfType === other
end

#to_rbiObject



112
113
114
# File 'lib/rbi/type.rb', line 112

def to_rbi
  "T.self_type"
end