class DearInventory::Validators::Integer
Public Instance Methods
call()
click to toggle source
# File lib/dear_inventory/validators/integer.rb, line 10 def call value = instance_variable_get(:@value) return if value.nil? return if value.is_a?(::Integer) raise_error("expected an Integer but received #{value.inspect}") end