Class: T::Types::TypedSet::Untyped

Inherits:
TypedSet
  • Object
show all
Defined in:
lib/types/types/typed_set.rb

Instance Method Summary collapse

Constructor Details

#initializeUntyped

Returns a new instance of Untyped.



35
36
37
# File 'lib/types/types/typed_set.rb', line 35

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

Instance Method Details

#valid?(obj) ⇒ Boolean

Returns:



39
40
41
# File 'lib/types/types/typed_set.rb', line 39

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