Class: T::Types::TypedEnumerator::Untyped
- Inherits:
-
TypedEnumerator
- Object
- 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
Constructor Details
#initialize ⇒ Untyped
Returns a new instance of Untyped.
30 31 32 |
# File 'lib/types/types/typed_enumerator.rb', line 30 def initialize super(T::Types::Untyped::Private::INSTANCE) end |
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 |