Class: T::Types::TypedEnumeratorLazy
- Inherits:
-
TypedEnumerable
- Object
- Base
- TypedEnumerable
- T::Types::TypedEnumeratorLazy
- Defined in:
- lib/types/types/typed_enumerator_lazy.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Untyped
Instance Method Summary collapse
-
#name ⇒ Object
overrides Base.
- #new(*args, &blk) ⇒ Object
-
#recursively_valid?(obj) ⇒ Boolean
overrides Base.
- #underlying_class ⇒ Object
-
#valid?(obj) ⇒ Boolean
overrides Base.
Methods inherited from TypedEnumerable
#build_type, #describe_obj, #initialize, #type
Methods inherited from Base
#==, #describe_obj, #error_message_for_obj, #error_message_for_obj_recursive, #hash, method_added, #subtype_of?, #to_s, #validate!
Constructor Details
This class inherits a constructor from T::Types::TypedEnumerable
Instance Method Details
#name ⇒ Object
overrides Base
11 12 13 |
# File 'lib/types/types/typed_enumerator_lazy.rb', line 11 def name "T::Enumerator::Lazy[#{type.name}]" end |
#new(*args, &blk) ⇒ Object
25 26 27 |
# File 'lib/types/types/typed_enumerator_lazy.rb', line 25 def new(*args, &blk) T.unsafe(Enumerator::Lazy).new(*args, &blk) end |
#recursively_valid?(obj) ⇒ Boolean
overrides Base
16 17 18 |
# File 'lib/types/types/typed_enumerator_lazy.rb', line 16 def recursively_valid?(obj) obj.is_a?(Enumerator::Lazy) && super end |
#underlying_class ⇒ Object
6 7 8 |
# File 'lib/types/types/typed_enumerator_lazy.rb', line 6 def Enumerator::Lazy end |
#valid?(obj) ⇒ Boolean
overrides Base
21 22 23 |
# File 'lib/types/types/typed_enumerator_lazy.rb', line 21 def valid?(obj) obj.is_a?(Enumerator::Lazy) end |