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: 114,454 of 188,189
Downloads: 6,207
Daily
Ranking: 139,519 of 188,174
Downloads: 0
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 |