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,072 of 188,339
Downloads: 38,828

Daily

Ranking: 17,142 of 188,315
Downloads: 23

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,087,820,008bundler
29936,556,175rspec
3,6123,149,108rcov
4,3102,037,285jeweler

Owners

#GravatarHandle
1iconyaauie