class DMap::Validations::AbsenceOf

Public Class Methods

is_valid?(command) click to toggle source

Return true if it’s valid

# File lib/dmap/validations/absence.rb, line 10
def self.is_valid?(command)
  true
end
parent_name() click to toggle source

for aliases

# File lib/dmap/validations/absence.rb, line 5
def self.parent_name
  "AbsenceOf"
end
validate(command=nil) click to toggle source

This is what’s returned to our template

# File lib/dmap/validations/absence.rb, line 15
def self.validate(command=nil)
  {:null => true}
end