Class: T::Types::TypedEnumerable::Untyped
- Inherits:
-
T::Types::TypedEnumerable
- Object
- Base
- T::Types::TypedEnumerable
- T::Types::TypedEnumerable::Untyped
- Defined in:
- lib/types/types/typed_enumerable.rb
Instance Attribute Summary
Attributes inherited from T::Types::TypedEnumerable
Instance Method Summary collapse
-
#initialize ⇒ Untyped
constructor
A new instance of Untyped.
- #valid?(obj) ⇒ Boolean
Methods inherited from T::Types::TypedEnumerable
#describe_obj, #name, #recursively_valid?, #underlying_class
Methods inherited from Base
#==, #describe_obj, #error_message_for_obj, #error_message_for_obj_recursive, #hash, method_added, #name, #recursively_valid?, #subtype_of?, #to_s, #validate!
Constructor Details
Instance Method Details
#valid?(obj) ⇒ Boolean
178 179 180 |
# File 'lib/types/types/typed_enumerable.rb', line 178 def valid?(obj) obj.is_a?(Enumerable) end |