Class: DMap::Validations::Default
- Inherits:
-
Object
- Object
- DMap::Validations::Default
- 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
- .is_valid?(command = nil) ⇒ Boolean
- .parent_name ⇒ Object
- .property ⇒ Object
- .validate(command = nil) ⇒ Object
Instance Attribute Details
#property ⇒ Object
Returns the value of attribute property.
38 39 40 |
# File 'lib/dmap/validations/misc.rb', line 38 def property @property end |
Class Method Details
.is_valid?(command = nil) ⇒ Boolean
46 47 48 |
# File 'lib/dmap/validations/misc.rb', line 46 def self.is_valid?(command=nil) true end |
.parent_name ⇒ Object
42 43 44 |
# File 'lib/dmap/validations/misc.rb', line 42 def self.parent_name "Default" end |
.property ⇒ Object
40 |
# File 'lib/dmap/validations/misc.rb', line 40 def self.property; true; end |
.validate(command = nil) ⇒ Object
50 51 52 |
# File 'lib/dmap/validations/misc.rb', line 50 def self.validate(command=nil) command ||= "true" end |