module Dry::Logic

Constants

VERSION

Public Class Methods

Rule(*args, **options, &block) click to toggle source
# File lib/dry/logic/rule.rb, line 12
def self.Rule(*args, **options, &block)
  if args.any?
    Rule.build(*args, **options)
  elsif block
    Rule.build(block, **options)
  end
end