Module TypedArray
In: lib/typed-array/functions.rb
lib/typed-array.rb

Provides TypedArray functionality to a subclass of Array when extended in the class‘s definiton

Methods

Classes and Modules

Module TypedArray::Functions
Class TypedArray::UnexpectedTypeException

Public Class methods

Hook the extension process in order to include the necessary functions and do some basic sanity checks.

Public Instance methods

when a class inherits from this one, make sure that it also inherits the types that are being enforced

restricted_type(*types)

Alias for restricted_types

A getter/setter for types to add. If no arguments are passed, it simply returns the current array of accepted types.

Protected Instance methods

a store of subclasses

[Validate]