class DMap::Validations::PresenceOf
Public Class Methods
is_valid?(command=nil)
click to toggle source
# File lib/dmap/validations/presence.rb, line 8 def self.is_valid?(command=nil) true end
parent_name()
click to toggle source
# File lib/dmap/validations/presence.rb, line 4 def self.parent_name "PresenceOf" end
validate(command=nil)
click to toggle source
# File lib/dmap/validations/presence.rb, line 12 def self.validate(command=nil) ret = DMap::Validations::Core::Numbers.run command ret1 = DMap::Validations::Core::When.run ret[:cmd] ret.merge!(ret1) end