Class: T::Types::Untyped
Overview
A dynamic type, which permits whatever
Defined Under Namespace
Modules: Private
Instance Method Summary collapse
- #build_type ⇒ Object
-
#initialize ⇒ Untyped
constructor
A new instance of Untyped.
-
#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 ⇒ Untyped
Returns a new instance of Untyped.
8 |
# File 'lib/types/types/untyped.rb', line 8 def initialize; end |
Instance Method Details
#build_type ⇒ Object
10 11 12 |
# File 'lib/types/types/untyped.rb', line 10 def build_type nil end |
#name ⇒ Object
overrides Base
15 16 17 |
# File 'lib/types/types/untyped.rb', line 15 def name "T.untyped" end |
#valid?(obj) ⇒ Boolean
overrides Base
20 21 22 |
# File 'lib/types/types/untyped.rb', line 20 def valid?(obj) true end |