Class: T::Types::TypedEnumerable::Untyped

Inherits:
TypedEnumerable
  • Object
show all
Defined in:
lib/types/types/typed_enumerable.rb

Instance Method Summary collapse

Constructor Details

#initializeUntyped

Returns a new instance of Untyped.



176
177
178
# File 'lib/types/types/typed_enumerable.rb', line 176

def initialize
  super(T::Types::Untyped::Private::INSTANCE)
end

Instance Method Details

#valid?(obj) ⇒ Boolean

Returns:



180
181
182
# File 'lib/types/types/typed_enumerable.rb', line 180

def valid?(obj)
  obj.is_a?(Enumerable)
end