Class: DMap::Validations::AbsenceOf

Inherits:
Object
  • Object
show all
Defined in:
lib/dmap/validations/absence.rb

Direct Known Subclasses

Absence, Absent

Class Method Summary collapse

Class Method Details

.is_valid?(command) ⇒ Boolean

Return true if it’s valid

Returns:

  • (Boolean)


10
11
12
# File 'lib/dmap/validations/absence.rb', line 10

def self.is_valid?(command)
  true
end

.parent_nameObject

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