class DMap::Validations::FormatOf
Public Class Methods
is_valid?(command=nil)
click to toggle source
# File lib/dmap/validations/format.rb, line 8 def self.is_valid?(command=nil) # To many different values to really pin-point true end
parent_name()
click to toggle source
# File lib/dmap/validations/format.rb, line 4 def self.parent_name "FormatOf" end
validate(command=nil)
click to toggle source
# File lib/dmap/validations/format.rb, line 13 def self.validate(command=nil) command = command.to_sym if command.match(/^[A-Za-z]/) {:as => command} end