diff options
-rw-r--r-- | lib/uri/common.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb index b886923c9e..e3ed405857 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -99,7 +99,7 @@ module URI # # => "@%3F@%21" # def escape(*arg) - warn "URI.escape is obsolete", uplevel: 1 + warn "URI.#{__callee__} is obsolete", uplevel: 1 DEFAULT_PARSER.escape(*arg) end alias encode escape @@ -130,7 +130,7 @@ module URI # # => "http://example.com/?a=\t\r" # def unescape(*arg) - warn "URI.unescape is obsolete", uplevel: 1 + warn "URI.#{__callee__} is obsolete", uplevel: 1 DEFAULT_PARSER.unescape(*arg) end alias decode unescape |