1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove :doc: in :nodoc: class [ci skip]

The `:doc:` was added in bc478158 but originally `UriEncoder` is a
`:nodoc:` class.
This commit is contained in:
Ryuta Kamizono 2017-05-01 01:11:14 +09:00
parent da70168715
commit 7cb71c5ce3

View file

@ -59,11 +59,11 @@ module ActionDispatch
end
private
def escape(component, pattern) # :doc:
def escape(component, pattern)
component.gsub(pattern) { |unsafe| percent_encode(unsafe) }.force_encoding(US_ASCII)
end
def percent_encode(unsafe) # :doc:
def percent_encode(unsafe)
safe = EMPTY.dup
unsafe.each_byte { |b| safe << DEC2HEX[b] }
safe