Class: DMap::Validations::PresenceOf
- Inherits:
-
Object
- Object
- DMap::Validations::PresenceOf
- Defined in:
- lib/dmap/validations/presence.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.is_valid?(command = nil) ⇒ Boolean
8 9 10 |
# File 'lib/dmap/validations/presence.rb', line 8 def self.is_valid?(command=nil) true end |
.parent_name ⇒ Object
4 5 6 |
# File 'lib/dmap/validations/presence.rb', line 4 def self.parent_name "PresenceOf" end |
.validate(command = nil) ⇒ Object
12 13 14 15 16 |
# 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 |