class T::Types::TypedRange
Attributes
type[R]
Public Instance Methods
name()
click to toggle source
@override Base
# File lib/types/types/typed_range.rb, line 13 def name "T::Range[#{@type.name}]" end
new(*args)
click to toggle source
# File lib/types/types/typed_range.rb, line 27 def new(*args) T.unsafe(Range).new(*args) end
recursively_valid?(obj)
click to toggle source
@override Base
Calls superclass method
T::Types::TypedEnumerable#recursively_valid?
# File lib/types/types/typed_range.rb, line 18 def recursively_valid?(obj) obj.is_a?(Range) && super end
underlying_class()
click to toggle source
# File lib/types/types/typed_range.rb, line 8 def underlying_class Hash end
valid?(obj)
click to toggle source
@override Base
# File lib/types/types/typed_range.rb, line 23 def valid?(obj) obj.is_a?(Range) end