Module: T::Enumerator::Lazy

Defined in:
lib/types/_types.rb

Class Method Summary collapse

Class Method Details

.[](type) ⇒ Object



323
324
325
326
327
328
329
# File 'lib/types/_types.rb', line 323

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