Class: T::Types::SelfType
Overview
Modeling self-types properly at runtime would require additional tracking, so at runtime we permit all values and rely on the static checker.
Instance Method Summary collapse
-
#initialize ⇒ SelfType
constructor
A new instance of SelfType.
- #name ⇒ Object
- #valid?(obj) ⇒ Boolean
Methods inherited from Base
#==, #describe_obj, #error_message_for_obj, #hash, method_added, #subtype_of?, #to_s, #validate!
Constructor Details
#initialize ⇒ SelfType
Returns a new instance of SelfType.
9 |
# File 'lib/types/types/self_type.rb', line 9 def initialize(); end |
Instance Method Details
#name ⇒ Object
12 13 14 |
# File 'lib/types/types/self_type.rb', line 12 def name "T.self_type" end |
#valid?(obj) ⇒ Boolean
17 18 19 |
# File 'lib/types/types/self_type.rb', line 17 def valid?(obj) true end |