lib/mandrails/message_builder.rb
# Internal: Extract body of specified format, if any.
#
# Returns String or nil.
Extract body of specified format, if any.
Returns String or nil.
Extract body of specified format if any . Returns String or nil .
def body(format)
      content = mail.send("#{format}_part").presence
      content ||= mail if mail.mime_type =~ %r{\Atext/#{format}} || format == :text && text?
      content.body.raw_source if content.present?
    end
def body ( format ) content = mail . send ( "#{format}_part" ) . presence content ||= mail if mail . mime_type =~ %r{ \A text/ #{ format } } || format == :text && text? content . body . raw_source if content . present? end
Internal: Extract body of specified format, if any.
Internal : Extract body of specified format if any .
format
<not_specific>