Parent

Methods

Class/Module Index [+]

Quicksearch

Fog::Storage::Brightbox

Public Class Methods

escape(str,extra_exclude_chars = "") click to toggle source

CGI.escape, but without special treatment on spaces

# File lib/fog/brightbox/storage.rb, line 159
def self.escape(str,extra_exclude_chars = "")
  str.gsub(/([^a-zA-Z0-9_.-#{extra_exclude_chars}]+)/) do
    "%" + $1.unpack("H2" * $1.bytesize).join("%").upcase
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.