Sha256: b44d54b0b6bd16ee6c485f98eab40071091c497a95304cc3a08c86e4186a4a8a

Contents?: true

Size: 435 Bytes

Versions: 7

Compression:

Stored size: 435 Bytes

Contents

module Dry
  module Logic
    module Operators
      def and(other)
        Operations::And.new(self, other)
      end
      alias & and

      def or(other)
        Operations::Or.new(self, other)
      end
      alias | or

      def xor(other)
        Operations::Xor.new(self, other)
      end
      alias ^ xor

      def then(other)
        Operations::Implication.new(self, other)
      end
      alias > then
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dry-logic-1.0.0 lib/dry/logic/operators.rb
dry-logic-0.6.1 lib/dry/logic/operators.rb
dry-logic-0.6.0 lib/dry/logic/operators.rb
dry-logic-0.5.0 lib/dry/logic/operators.rb
dry-logic-0.4.2 lib/dry/logic/operators.rb
dry-logic-0.4.1 lib/dry/logic/operators.rb
dry-logic-0.4.0 lib/dry/logic/operators.rb