RubyGems Navigation menu

unionvalue 1.1.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:
=

Installeer:
=

Versies:

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

Development afhankelijkheden (5):

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

Eigenaren:

Authors:

  • Axis Sivitz

SHA 256 checksum:

=

Total downloads 6.163

Voor deze versie 3.887

Versie vrijgegeven:

Licentie:

MIT

Required Ruby Version: >= 0

Links: