Module: T::Enumerator

Defined in:
lib/types/_types.rb

Defined Under Namespace

Modules: Chain, Lazy

Class Method Summary collapse

Class Method Details

.[](type) ⇒ Object



314
315
316
317
318
319
320
# File 'lib/types/_types.rb', line 314

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