304 305 306 307 308 309 310
# File 'lib/types/_types.rb', line 304 def self.[](type) if type.is_a?(T::Types::Untyped) T::Types::TypedEnumerable::Untyped.new else T::Types::TypedEnumerable.new(type) end end