Sha256: 2a9efe6f815e0ef87425e1120525cf5c84acba207f363dac96b8c613977b66e1
Contents?: true
Size: 305 Bytes
Versions: 3
Compression:
Stored size: 305 Bytes
Contents
require 'dry/logic/operations/unary' require 'dry/logic/result' module Dry module Logic module Operations class Negation < Unary def type :not end def call(input) Result.new(!rule[input], id) { ast(input) } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dry-logic-0.4.2 | lib/dry/logic/operations/negation.rb |
dry-logic-0.4.1 | lib/dry/logic/operations/negation.rb |
dry-logic-0.4.0 | lib/dry/logic/operations/negation.rb |