module SanitizeEmail::MailExt

Cribbed from email_spec gem

Public Instance Methods

default_part() click to toggle source
# File lib/sanitize_email/mail_ext.rb, line 5
def default_part
  @default_part ||= html_part || text_part || self
end
default_part_body() click to toggle source
# File lib/sanitize_email/mail_ext.rb, line 9
def default_part_body
  default_part.body
end