Class: T::Types::TypedRange::Untyped
- Inherits:
-
TypedRange
- Object
- TypedRange
- T::Types::TypedRange::Untyped
- Defined in:
- lib/types/types/typed_range.rb
Instance Method Summary collapse
-
#initialize ⇒ Untyped
constructor
A new instance of Untyped.
- #valid?(obj) ⇒ Boolean
Constructor Details
#initialize ⇒ Untyped
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
34 35 36 |
# File 'lib/types/types/typed_range.rb', line 34 def valid?(obj) obj.is_a?(Range) end |