Class: DMap::Validations::Reader
- Inherits:
-
Object
- Object
- DMap::Validations::Reader
- 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.
44 45 46 |
# File 'lib/dmap/validations/access.rb', line 44 def property @property end |
Class Method Details
.is_valid?(command) ⇒ Boolean
48 49 50 |
# File 'lib/dmap/validations/access.rb', line 48 def self.is_valid?(command) (command == "protected" or command == "public" or command == "private") end |
.property ⇒ Object
46 |
# File 'lib/dmap/validations/access.rb', line 46 def self.property; true; end |
.validate(command = nil) ⇒ Object
52 53 54 55 |
# File 'lib/dmap/validations/access.rb', line 52 def self.validate(command=nil) command ||= "protected" ":" + command end |