RubyGems Navigation menu

unionvalue 1.0.0

Allows easy creation of immutable union values, a.k.a. sum-types. Example: APICallResult = UnionValue.new(:success, :failure, :timeout) APICallResult.failure.is_failure? #=> true APICallResult.timeout.is_success? #=> false APICallResult.success(12345).data #=> 12345

Gemfile:
=

インストール:
=

バージョン履歴:

  1. 1.1.0 May 01, 2015 (8KB)
  2. 1.0.0 April 26, 2015 (7.5KB)

Development依存関係 (5):

bundler ~> 1.0
jeweler ~> 2.0.1
rake >= 0
rdoc ~> 3.12
rspec ~> 2.11.0

所有者:

作者:

  • Axis Sivitz

SHA 256チェックサム:

=

累計ダウンロード数 6,020

このバージョンのみ 2,211

このバージョンがリリースされたのは:

ライセンス:

MIT

必要なRubyのバージョン: >= 0

リンク: