Class: T::Types::TypedArray::Untyped
- Inherits:
-
T::Types::TypedArray
- Object
- Base
- T::Types::TypedEnumerable
- T::Types::TypedArray
- T::Types::TypedArray::Untyped
- Defined in:
- lib/types/types/typed_array.rb
Defined Under Namespace
Modules: Private
Instance Method Summary collapse
- #freeze ⇒ Object
-
#initialize ⇒ Untyped
constructor
A new instance of Untyped.
- #valid?(obj) ⇒ Boolean
Methods inherited from T::Types::TypedArray
#name, #new, #recursively_valid?, #underlying_class
Methods inherited from T::Types::TypedEnumerable
#build_type, #describe_obj, #name, #recursively_valid?, #type, #underlying_class
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.
55 56 57 |
# File 'lib/types/types/typed_array.rb', line 55 def initialize super(T::Types::Untyped::Private::INSTANCE) end |
Instance Method Details
#freeze ⇒ Object
63 64 65 66 |
# File 'lib/types/types/typed_array.rb', line 63 def freeze build_type # force lazy initialization before freezing the object super end |
#valid?(obj) ⇒ Boolean
59 60 61 |
# File 'lib/types/types/typed_array.rb', line 59 def valid?(obj) obj.is_a?(Array) end |