class Net::IMAP::BodyTypeText - net-imap: Ruby Standard Library Documentation

# 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:

- media_type

- subtype

- param

- content_id

- description

- encoding

- size

### Public Instance Methods

lines → Integer click to toggle source

Returns the size of the body in text lines.

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 973

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.5.4/lib/net/imap/response_data.rb, line 989
    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 net-imap-0.5.4/lib/net/imap/response_data.rb, line 982
    def multipart?
      return false
    end