RubyGems Navigation menu

typed-array 0.1.2

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.

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 0.1.2 - August 03, 2011 (10.5KB)
  2. 0.1.1 - August 03, 2011 (10.5KB)

Development依存関係 (4):

bundler ~> 1.0.0
jeweler ~> 1.6.4
rcov >= 0
rspec ~> 2.3.0

所有者:

作者:

  • Ryan Biesemeyer

SHA 256チェックサム:

891fa1de2cdccad5f9e03936569c3c15d413d8c6658e2edfe439d9386d169b62

累計ダウンロード数 34,782

このバージョンのみ 31,751

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: