instance method
content_type_is_text?
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
content_type_is_text?()
Returns true if this part’s content main type is text, else returns false. By main type is meant “text/plain” is text. “text/html” is text
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mail.rb, line 513
def content_type_is_text?
self.header['content-type'] && (self.header['content-type'].main_type != "text")
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mail.rb line 513
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Mail