Module: T::Array
- Defined in:
- lib/types/_types.rb
Overview
Generic classes ###
Class Method Summary collapse
Class Method Details
.[](type) ⇒ Object
230 231 232 233 234 235 236 |
# File 'lib/types/_types.rb', line 230 def self.[](type) if type.is_a?(T::Types::Untyped) T::Types::TypedArray::Untyped.new else T::Types::TypedArray.new(type) end end |