Sha256: a555aa0b49acdc4ce786133b3c0af1daefa31e5cfab19f1aa49855daeed41e29
Contents?: true
Size: 278 Bytes
Versions: 1
Compression:
Stored size: 278 Bytes
Contents
class Right include Either def self.[] value new value end def initialize(value) @value = value end def left None end def right Some[value] end def left? false end def right? true end private attr_reader :value end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
either-0.0.2 | lib/right.rb |