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.
Defined Under Namespace
Modules: Private
Instance Method Summary collapse
- #build_type ⇒ Object
-
#initialize ⇒ SelfType
constructor
A new instance of SelfType.
-
#name ⇒ Object
overrides Base.
-
#valid?(obj) ⇒ Boolean
overrides Base.
Methods inherited from Base
#==, #describe_obj, #error_message_for_obj, #error_message_for_obj_recursive, #hash, method_added, #recursively_valid?, #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
#build_type ⇒ Object
11 12 13 |
# File 'lib/types/types/self_type.rb', line 11 def build_type nil end |
#name ⇒ Object
overrides Base
16 17 18 |
# File 'lib/types/types/self_type.rb', line 16 def name "T.self_type" end |
#valid?(obj) ⇒ Boolean
overrides Base
21 22 23 |
# File 'lib/types/types/self_type.rb', line 21 def valid?(obj) true end |