class ObjectValidator::Checks::With

Public Instance Methods

call() click to toggle source
# File lib/object_validator/checks/with.rb, line 4
def call
  fail unless value[:proc].call(object)
rescue
  errors.add(name, value[:msg])
end