class DMap::Validations::Accessor

Attributes

property[RW]

Public Class Methods

is_valid?(command) click to toggle source

Return true if it’s valid

# File lib/dmap/validations/access.rb, line 14
def self.is_valid?(command)
  (command == "protected" or command == "public" or command == "private")
end
parent_name() click to toggle source

for aliases

# File lib/dmap/validations/access.rb, line 9
def self.parent_name
  "Accessor"
end
property() click to toggle source
# File lib/dmap/validations/access.rb, line 6
def self.property; true; end
validate(command=nil) click to toggle source

This is what’s returned to our template

# File lib/dmap/validations/access.rb, line 19
def self.validate(command=nil)
  command ||= "protected"
  ":" + command
end