Module: T::Array

Defined in:
lib/types/_types.rb

Overview

Generic classes ###

Class Method Summary collapse

Class Method Details

.[](type) ⇒ Object



284
285
286
287
288
289
290
# File 'lib/types/_types.rb', line 284

def self.[](type)
  if type.is_a?(T::Types::Untyped)
    T::Types::TypedArray::Untyped::Private::INSTANCE
  else
    T::Types::TypedArray::Private::Pool.type_for_module(type)
  end
end