Module: T::Range

Defined in:
lib/types/_types.rb

Class Method Summary collapse

Class Method Details

.[](type) ⇒ Object



344
345
346
347
348
349
350
# File 'lib/types/_types.rb', line 344

def self.[](type)
  if type.is_a?(T::Types::Untyped)
    T::Types::TypedRange::Untyped.new
  else
    T::Types::TypedRange.new(type)
  end
end