Module: DR::URIEscape

Extended by:
URIEscape
Included in:
URIEscape
Defined in:
lib/dr/base/uri.rb

Overview

reimplement deprecated escape and unescape methods since URI.encode_www_form_component does not encode the same way cf the source code of URI::DEFAULT_PARSER.escape

Instance Method Summary collapse

Instance Method Details

#escape(*arg) ⇒ Object



91
92
93
# File 'lib/dr/base/uri.rb', line 91

def escape(*arg)
  URI::DEFAULT_PARSER.escape(*arg)
end

#unescape(*arg) ⇒ Object



94
95
96
# File 'lib/dr/base/uri.rb', line 94

def unescape(*arg)
  URI::DEFAULT_PARSER.unescape(*arg)
end