method
percent_encode
v4.2.1 -
Show latest stable
- Class:
ActionDispatch::Journey::Router::Utils::UriEncoder
percent_encode(unsafe)protected
No documentation available.
# File actionpack/lib/action_dispatch/journey/router/utils.rb, line 66
def percent_encode(unsafe)
safe = EMPTY.dup
unsafe.each_byte { |b| safe << DEC2HEX[b] }
safe
end