class Net::IMAP::BodyTypeText

Net::IMAP::BodyTypeText represents the body structures of messages and message parts, when Content-Type is text/*.

BodyTypeText contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following:

Public Instance Methods

lines → Integer click to toggle source

Returns the size of the body in text lines.

# File lib/net/imap/response_data.rb, line 971
      
media_subtype click to toggle source

Obsolete: use subtype instead. Calling this will generate a warning message to stderr, then return the value of subtype.

# File lib/net/imap/response_data.rb, line 987
def media_subtype
  warn("media_subtype is obsolete, use subtype instead.\n",
       uplevel: 1, category: :deprecated)
  return subtype
end
multipart? → false click to toggle source

BodyTypeText is not used for multipart MIME parts.

# File lib/net/imap/response_data.rb, line 980
def multipart?
  return false
end