Class: RBI::Type::SelfType

Inherits:
Type
  • Object
show all
Defined in:
lib/rbi/type.rb

Overview

T.self_type.

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object

: (BasicObject other) -> bool



162
163
164
# File 'lib/rbi/type.rb', line 162

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

#normalizeObject

: -> Type



174
175
176
# File 'lib/rbi/type.rb', line 174

def normalize
  self
end

#simplifyObject

: -> Type



180
181
182
# File 'lib/rbi/type.rb', line 180

def simplify
  self
end

#to_rbiObject

: -> String



168
169
170
# File 'lib/rbi/type.rb', line 168

def to_rbi
  "::T.self_type"
end