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
Hook the extension process in order to include the necessary functions and do some basic sanity checks.
when a class inherits from this one, make sure that it also inherits the types that are being enforced
A getter/setter for types to add. If no arguments are passed, it simply returns the current array of accepted types.