instance method
text_content_type?
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
text_content_type?()
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.7/tmail/attachments.rb, line 23
def text_content_type?
self.header['content-type'] && (self.header['content-type'].main_type == 'text')
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/attachments.rb line 23
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Mail