aboutsummaryrefslogtreecommitdiffstats
path: root/lib/uri
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-20 08:03:01 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-20 08:03:01 +0000
commit870c690a2776c2a1840bda99331f23a3e2ed9e2c (patch)
treefdbacbbdaa2a7cbcc0156488cc007fd352bf70a1 /lib/uri
parentcd8cbe2eafd1060422aeb6257cb8a8e9db1cba27 (diff)
downloadruby-870c690a2776c2a1840bda99331f23a3e2ed9e2c.tar.gz
* lib/uri/common.rb: added documentation for deprecated method.
[Misc #11960][ruby-core:72733][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri')
-rw-r--r--lib/uri/common.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index 3fb1a6dbda..48bf6970de 100644
--- a/lib/uri/common.rb
+++ b/lib/uri/common.rb
@@ -81,6 +81,10 @@ module URI
#
# Escapes the string, replacing all unsafe characters with codes.
#
+ # This method is obsolete and should not be used. Instead, use
+ # CGI.escape, URI.www_form_encode or URI.www_form_encode_component
+ # depending on your specific use case.
+ #
# == Usage
#
# require 'uri'