class ObjectValidator::Checks::GreaterThan
Public Instance Methods
call()
click to toggle source
# File lib/object_validator/checks/greater_than.rb, line 4 def call return if method.is_a?(Numeric) && method > value errors.add(name, 'value is less than required') end