class ObjectValidator::Checks::Type

Public Instance Methods

call() click to toggle source
# File lib/object_validator/checks/type.rb, line 4
def call
  return if method.is_a?(value)
  errors.add(name, "must be a #{value.name}")
end