Namespace

Class/Module Index [+]

Quicksearch

Rudy::AWS

Constants

VALID_REGIONS

Public Instance Methods

escape(str) click to toggle source

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
escape!(str) click to toggle source
# File lib/rudy/aws.rb, line 20
def escape!(str)
  str.to_s.tr!("[\00\\n\r\0032\\\\]", '').gsub!(/([\'\"])/, '\1\1')
end
valid_region?(r) click to toggle source
# 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.