module Dry::Types
def self.Rule(options)
-
(Dry::Logic::Rule)
-
Parameters:
-
options
(Hash
) --
def self.Rule(options) rule_compiler.( options.map { |key, val| Logic::Rule::Predicate.new(Logic::Predicates[:"#{key}?"]).curry(val).to_ast } ).reduce(:and) end