Module: T::Enumerator::Chain

Defined in:
lib/types/_types.rb

Class Method Summary collapse

Class Method Details

.[](type) ⇒ Object



333
334
335
336
337
338
339
# File 'lib/types/_types.rb', line 333

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