Sha256: ac69055eda1cb1e07374349c3697bd59354fb77651936627ff22f4fd316ddea8
Contents?: true
Size: 421 Bytes
Versions: 2
Compression:
Stored size: 421 Bytes
Contents
require 'dry/monads/either' require 'dry/monads/maybe' require 'dry/monads/try' module Dry module Monads extend self def Maybe(value) Maybe.lift(value) end def Some(value) Maybe::Some.new(value) end def None Maybe::Some::None.instance end def Right(value) Either::Right.new(value) end def Left(value) Either::Left.new(value) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-monads-0.0.2 | lib/dry/monads.rb |
dry-monads-0.0.1 | lib/dry/monads.rb |