Class: T::Types::AttachedClassType
- Defined in:
- lib/types/types/attached_class.rb
Overview
Modeling AttachedClass properly at runtime would require additional tracking, so at runtime we permit all values and rely on the static checker. As AttachedClass is modeled statically as a type member on every singleton class, this is consistent with the runtime behavior for all type members.
Defined Under Namespace
Modules: Private
Instance Method Summary collapse
-
#initialize ⇒ AttachedClassType
constructor
A new instance of AttachedClassType.
-
#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 ⇒ AttachedClassType
Returns a new instance of AttachedClassType.
11 |
# File 'lib/types/types/attached_class.rb', line 11 def initialize(); end |
Instance Method Details
#name ⇒ Object
overrides Base
14 15 16 |
# File 'lib/types/types/attached_class.rb', line 14 def name "T.attached_class" end |
#valid?(obj) ⇒ Boolean
overrides Base
19 20 21 |
# File 'lib/types/types/attached_class.rb', line 19 def valid?(obj) true end |