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