Categories: None [Edit]

typed-array

https://rubygems.org/gems/typed-array
https://github.com/yaauie/typed-array
All methods that alter the contents of an array that implements this Gem are first checked to ensure that the added items are of the types allowed. All methods behave exactly as their Array counterparts, including additional forms, block processing, etc. Defining a TypedArray Class: ```ruby class ThingsArray < Array extend TypedArray restrict_types Thing1, Thing2 end things = ThingsArray.new ``` Generating a single TypedArray ```ruby things = TypedArray(Thing1,Thing2).new These classes can be extended, and their accepted-types appended to after their initial definition.

Total

Ranking: 33,322 of 187,239
Downloads: 37,582

Daily

Ranking: 38,290 of 187,224
Downloads: 10

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,973,208,875bundler
27919,404,019rspec
3,6113,059,340rcov
4,2941,988,789jeweler

Owners

#GravatarHandle
1iconyaauie