class Dry::Rules::Or

Public Instance Methods

valid?() click to toggle source
# File lib/dry/rules/or.rb, line 5
def valid?
  return true if lt.valid? || rt.valid?
  [lt.errors, rt.errors].each { |e| errors.merge!(e) if e.any? }
  false
end