Modifies str by removing [\0\n\r\032\\] and escaping [\'\"]
# File lib/rudy/aws.rb, line 17 def escape(str) str.to_s.tr("[\00\\n\r\0032\\\\]", '').gsub(/([\'\"])/, '\1\1') end
# File lib/rudy/aws.rb, line 20 def escape!(str) str.to_s.tr!("[\00\\n\r\0032\\\\]", '').gsub!(/([\'\"])/, '\1\1') end
# File lib/rudy/aws.rb, line 14 def valid_region?(r); VALID_REGIONS.member?(r.to_sym || ''); end
[Validate]
Generated with the Darkfish Rdoc Generator 2.