class DMap::Validations::Required

Attributes

property[RW]

Public Class Methods

is_valid?(command) click to toggle source
# File lib/dmap/validations/misc.rb, line 65
def self.is_valid?(command)
  command ||= "true"
  (command == "true" or command == "false")
end
parent_name() click to toggle source
# File lib/dmap/validations/misc.rb, line 61
def self.parent_name
  "Required"
end
property() click to toggle source
# File lib/dmap/validations/misc.rb, line 59
def self.property; true; end
validate(command) click to toggle source
# File lib/dmap/validations/misc.rb, line 70
def self.validate(command)
  command ||= "true"
end