module Bundler::URI::Escape

def escape(*arg)


# => "@%3F@%21"
Bundler::URI.escape("@?@!", "!?")

# => "http://example.com/?a=\t\r"
Bundler::URI.unescape(enc_uri)

# => "http://example.com/?a=%09%0D"
enc_uri = Bundler::URI.escape("http://example.com/?a=\11\15")

require 'bundler/vendor/uri/lib/uri'

== Usage

depending on your specific use case.
CGI.escape, Bundler::URI.encode_www_form or Bundler::URI.encode_www_form_component
This method is obsolete and should not be used. Instead, use

Escapes the string, replacing all unsafe characters with codes.

== Description

When this argument is a String, it represents a character set.
By default uses UNSAFE.
Regexp that matches all symbols that must be replaced with codes.
+unsafe+::
String to replaces in.
+str+::

== Args

Bundler::URI.escape(str [, unsafe])

== Synopsis
def escape(*arg)
  warn "Bundler::URI.escape is obsolete", uplevel: 1
  DEFAULT_PARSER.escape(*arg)
end