Class: DMap::Validations::Required
- Inherits:
-
Object
- Object
- DMap::Validations::Required
- Defined in:
- lib/dmap/validations/misc.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#property ⇒ Object
Returns the value of attribute property.
Class Method Summary collapse
Instance Attribute Details
#property ⇒ Object
Returns the value of attribute property.
57 58 59 |
# File 'lib/dmap/validations/misc.rb', line 57 def property @property end |
Class Method Details
.is_valid?(command) ⇒ Boolean
65 66 67 68 |
# File 'lib/dmap/validations/misc.rb', line 65 def self.is_valid?(command) command ||= "true" (command == "true" or command == "false") end |
.parent_name ⇒ Object
61 62 63 |
# File 'lib/dmap/validations/misc.rb', line 61 def self.parent_name "Required" end |
.property ⇒ Object
59 |
# File 'lib/dmap/validations/misc.rb', line 59 def self.property; true; end |
.validate(command) ⇒ Object
70 71 72 |
# File 'lib/dmap/validations/misc.rb', line 70 def self.validate(command) command ||= "true" end |