Module: DR::URI::URIEscape

Extended by:
URIEscape
Included in:
DR::URI, 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



218
219
220
# File 'lib/dr/base/uri.rb', line 218

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

#unescape(*arg) ⇒ Object



221
222
223
# File 'lib/dr/base/uri.rb', line 221

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