Method: Mail::Encodings.get_encoding
- Defined in:
- lib/mail/encodings.rb
.get_encoding(name) ⇒ Object
Gets a defined encoding type, QuotedPrintable or Base64 for now.
Each encoding needs to be defined as a Mail::Encodings::ClassName for this to work, allows us to add other encodings in the future.
Example:
Encodings.get_encoding(:base64) #=> Mail::Encodings::Base64
41 42 43 |
# File 'lib/mail/encodings.rb', line 41 def Encodings.get_encoding(name) @transfer_encodings[get_name(name)] end |