Class: T::Types::Anything
Overview
The top type
Defined Under Namespace
Modules: Private
Instance Method Summary collapse
- #build_type ⇒ Object
-
#initialize ⇒ Anything
constructor
A new instance of Anything.
-
#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 ⇒ Anything
Returns a new instance of Anything.
7 |
# File 'lib/types/types/anything.rb', line 7 def initialize; end |
Instance Method Details
#build_type ⇒ Object
9 10 11 |
# File 'lib/types/types/anything.rb', line 9 def build_type nil end |
#name ⇒ Object
overrides Base
14 15 16 |
# File 'lib/types/types/anything.rb', line 14 def name "T.anything" end |
#valid?(obj) ⇒ Boolean
overrides Base
19 20 21 |
# File 'lib/types/types/anything.rb', line 19 def valid?(obj) true end |