module RsyncConfig::Propertiable::ClassMethods
Public Instance Methods
allow_properties(*properties)
click to toggle source
# File lib/rsync_config/propertiable.rb, line 11 def allow_properties *properties properties.each do |property| property = property.to_s if property.is_a? Symbol property = property.downcase.strip.gsub(/_/, ' ') allowed_properties.push property end end
allowed_properties()
click to toggle source
# File lib/rsync_config/propertiable.rb, line 19 def allowed_properties @allowed_properties ||= [] end
allowed_property?(property)
click to toggle source
# File lib/rsync_config/propertiable.rb, line 23 def allowed_property? property allowed_properties.include? property end