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_partObject


5
6
7
# File 'lib/sanitize_email/mail_ext.rb', line 5

def default_part
  @default_part ||= html_part || text_part || self
end

#default_part_bodyObject


9
10
11
# File 'lib/sanitize_email/mail_ext.rb', line 9

def default_part_body
  default_part.body
end