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
9 10 11 |
# File 'lib/sanitize_email/mail_ext.rb', line 9 def default_part @default_part ||= html_part || text_part || self end |
#default_part_body ⇒ Object
13 14 15 |
# File 'lib/sanitize_email/mail_ext.rb', line 13 def default_part_body default_part.body end |