Module: SanitizeEmail::MailExt
- Defined in:
- lib/sanitize_email/mail_ext.rb
Overview
Cribbed from email_spec gem
Instance Method Summary collapse
Instance Method Details
#default_part ⇒ Object
3 4 5 |
# File 'lib/sanitize_email/mail_ext.rb', line 3 def default_part @default_part ||= html_part || text_part || self end |
#default_part_body ⇒ Object
7 8 9 |
# File 'lib/sanitize_email/mail_ext.rb', line 7 def default_part_body default_part.body end |