369 370 371 372 373 374 375
# File 'lib/types/_types.rb', line 369 def self.[](type) if type.is_a?(T::Types::Untyped) T::Types::TypedEnumeratorChain::Untyped.new else T::Types::TypedEnumeratorChain.new(type) end end