Sha256: 662ac1728e175276521a0bcf4b6dad5f0765c4385c1be10ece010ef64ad92f4b

Contents?: true

Size: 295 Bytes

Versions: 6

Compression:

Stored size: 295 Bytes

Contents

module Dry
  # Common, idiomatic monads for Ruby
  #
  # @api public
  module Monads
    def self.included(base)
      if const_defined?(:CONSTRUCTORS)
        base.include(*CONSTRUCTORS)
      else
        raise "Load all monads first with require 'dry/monads/all'"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dry-monads-1.1.0 lib/dry/monads.rb
dry-monads-1.0.1 lib/dry/monads.rb
dry-monads-1.0.0 lib/dry/monads.rb
dry-monads-1.0.0.rc1 lib/dry/monads.rb
dry-monads-1.0.0.beta3 lib/dry/monads.rb
dry-monads-1.0.0.beta2 lib/dry/monads.rb