Class: DMap::Validations::Writer
- Inherits:
-
Object
- Object
- DMap::Validations::Writer
- Defined in:
- lib/dmap/validations/access.rb
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.
29 30 31 |
# File 'lib/dmap/validations/access.rb', line 29 def property @property end |
Class Method Details
.is_valid?(command) ⇒ Boolean
33 34 35 |
# File 'lib/dmap/validations/access.rb', line 33 def self.is_valid?(command) (command == "protected" or command == "public" or command == "private") end |
.property ⇒ Object
31 |
# File 'lib/dmap/validations/access.rb', line 31 def self.property; true; end |
.validate(command = nil) ⇒ Object
37 38 39 40 |
# File 'lib/dmap/validations/access.rb', line 37 def self.validate(command=nil) command ||= "protected" ":" + command end |