Module: T::Enumerable

Defined in:
lib/types/_types.rb

Class Method Summary collapse

Class Method Details

.[](type) ⇒ Object



304
305
306
307
308
309
310
# File 'lib/types/_types.rb', line 304

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