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 net-imap-0.4.9/lib/net/imap/response_data.rb, line 970
      
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 net-imap-0.4.9/lib/net/imap/response_data.rb, line 986
def media_subtype
  warn("media_subtype is obsolete, use subtype instead.\n", uplevel: 1)
  return subtype
end
multipart? → false click to toggle source

BodyTypeText is not used for multipart MIME parts.

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