method
uri_encode
v2_5_5 -
Show latest stable
- Class:
Gem::Server
uri_encode(str)public
No documentation available.
# File lib/rubygems/server.rb, line 459
def uri_encode(str)
str.gsub(URI::UNSAFE) do |match|
match.each_byte.map { |c| sprintf('%%%02X', c.ord) }.join
end
end