Class: T::Types::TypedEnumeratorChain::Untyped

Inherits:
T::Types::TypedEnumeratorChain show all
Defined in:
lib/types/types/typed_enumerator_chain.rb

Instance Attribute Summary

Attributes inherited from T::Types::TypedEnumeratorChain

#type

Attributes inherited from T::Types::TypedEnumerable

#type

Instance Method Summary collapse

Methods inherited from T::Types::TypedEnumeratorChain

#name, #new, #recursively_valid?, #underlying_class

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

#initializeUntyped

Returns a new instance of Untyped.



32
33
34
# File 'lib/types/types/typed_enumerator_chain.rb', line 32

def initialize
  super(T.untyped)
end

Instance Method Details

#valid?(obj) ⇒ Boolean

Returns:



36
37
38
# File 'lib/types/types/typed_enumerator_chain.rb', line 36

def valid?(obj)
  obj.is_a?(Enumerator::Chain)
end