Class: T::Types::TypedRange::Untyped

Inherits:
TypedRange
  • Object
show all
Defined in:
lib/types/types/typed_range.rb

Instance Method Summary collapse

Constructor Details

#initializeUntyped

Returns a new instance of Untyped.



30
31
32
# File 'lib/types/types/typed_range.rb', line 30

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

Instance Method Details

#valid?(obj) ⇒ Boolean

Returns:



34
35
36
# File 'lib/types/types/typed_range.rb', line 34

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