Method: RsyncConfig::Propertiable#sanitize_key

Defined in:
lib/rsync_config/propertiable.rb

#sanitize_key(key) ⇒ Object



39
40
41
42
43
44
45
# File 'lib/rsync_config/propertiable.rb', line 39

def sanitize_key(key)
  key = key.to_s unless key.is_a? String
  key = key.strip.downcase
  return nil if key.length == 0
  return nil unless self.class.allowed_property? key
  key
end