lib/dry/logic/rule/check.rb



module Dry
  module Logic
    class Rule::Check < Rule
      alias_method :result, :predicate

      def call(*args)
        Logic.Result(nil, result.(*args), self)
      end

      def type
        :check
      end
    end
  end
end