method

percent_escape

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ContentDisposition
percent_escape(string, pattern) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/http/content_disposition.rb, line 38
        def percent_escape(string, pattern)
          string.gsub(pattern) do |char|
            char.bytes.map { |byte| "%%%02X" % byte }.join
          end
        end
Register or log in to add new notes.