Class: DMap::Validations::FormatOf
- Inherits:
-
Object
- Object
- DMap::Validations::FormatOf
- Defined in:
- lib/dmap/validations/format.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.is_valid?(command = nil) ⇒ Boolean
8 9 10 11 |
# 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 ⇒ Object
4 5 6 |
# File 'lib/dmap/validations/format.rb', line 4 def self.parent_name "FormatOf" end |
.validate(command = nil) ⇒ Object
13 14 15 16 |
# 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 |