Class: ParameterSubstitution::Formatters::CgiUnescape
- Inherits:
-
Base
- Object
- Base
- ParameterSubstitution::Formatters::CgiUnescape
show all
- Defined in:
- lib/parameter_substitution/formatters/cgi_unescape.rb
Class Method Summary
collapse
Methods inherited from Base
encoding, has_parameters?, key, parse_duration
Class Method Details
.description ⇒ Object
4
5
6
|
# File 'lib/parameter_substitution/formatters/cgi_unescape.rb', line 4
def self.description
"Url-decodes the string, preserves nil."
end
|
8
9
10
|
# File 'lib/parameter_substitution/formatters/cgi_unescape.rb', line 8
def self.format(value)
value && CGI.unescape(value.to_s)
end
|