Categories: None [Edit]
unionvalue
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
Total
Ranking: 116,160 of 192,692
Downloads: 6,307
Daily
Ranking: 104,950 of 192,666
Downloads: 6
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | aosivitz |