Class: DMap::Validations::AbsenceOf
- Inherits:
-
Object
- Object
- DMap::Validations::AbsenceOf
- Defined in:
- lib/dmap/validations/absence.rb
Class Method Summary collapse
-
.is_valid?(command) ⇒ Boolean
Return true if it’s valid.
-
.parent_name ⇒ Object
for aliases.
-
.validate(command = nil) ⇒ Object
This is what’s returned to our template.
Class Method Details
.is_valid?(command) ⇒ Boolean
Return true if it’s valid
10 11 12 |
# File 'lib/dmap/validations/absence.rb', line 10 def self.is_valid?(command) true end |
.parent_name ⇒ Object
for aliases
5 6 7 |
# File 'lib/dmap/validations/absence.rb', line 5 def self.parent_name "AbsenceOf" end |
.validate(command = nil) ⇒ Object
This is what’s returned to our template
15 16 17 |
# File 'lib/dmap/validations/absence.rb', line 15 def self.validate(command=nil) {:null => true} end |