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