class DMap::Validations::Unique
Only need the property tag when the validation attaches itself to the property
Attributes
property[RW]
Public Class Methods
is_valid?(command=nil)
click to toggle source
# File lib/dmap/validations/uniqueness.rb, line 9 def self.is_valid?(command=nil) true # always end
property()
click to toggle source
# File lib/dmap/validations/uniqueness.rb, line 7 def self.property; true; end
validate(command=nil)
click to toggle source
# File lib/dmap/validations/uniqueness.rb, line 13 def self.validate(command=nil) (command != "true" or command != "false") end