Class: ParameterSubstitution::Formatters::StringToBase64
- Inherits:
-
Base
- Object
- Base
- ParameterSubstitution::Formatters::StringToBase64
show all
- Defined in:
- lib/parameter_substitution/formatters/string_to_base64.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/string_to_base64.rb', line 4
def self.description
"Converts strings to base64 encoding"
end
|
8
9
10
11
12
|
# File 'lib/parameter_substitution/formatters/string_to_base64.rb', line 8
def self.format(value)
return nil if value.nil?
[value].pack("m0")
end
|