Class: T::Types::TypedEnumerator::Untyped
- Inherits:
-
T::Types::TypedEnumerator
- Object
- Base
- T::Types::TypedEnumerable
- T::Types::TypedEnumerator
- T::Types::TypedEnumerator::Untyped
- Defined in:
- lib/types/types/typed_enumerator.rb
Instance Method Summary collapse
-
#initialize ⇒ Untyped
constructor
A new instance of Untyped.
- #valid?(obj) ⇒ Boolean
Methods inherited from T::Types::TypedEnumerator
#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
Instance Method Details
#valid?(obj) ⇒ Boolean
34 35 36 |
# File 'lib/types/types/typed_enumerator.rb', line 34 def valid?(obj) obj.is_a?(Enumerator) end |