Class Net::IMAP::BodyTypeText
In: net/imap.rb
Parent: Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :lines, :md5, :disposition, :language, :extension)

Net::IMAP::BodyTypeText represents TEXT body structures of messages.

Fields:

lines:Returns the size of the body in text lines.

And Net::IMAP::BodyTypeText has all fields of Net::IMAP::BodyTypeBasic.

Methods

Public Instance methods

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

[Source]

# File net/imap.rb, line 1789
      def media_subtype
        $stderr.printf("warning: media_subtype is obsolete.\n")
        $stderr.printf("         use subtype instead.\n")
        return subtype
      end

[Source]

# File net/imap.rb, line 1782
      def multipart?
        return false
      end

[Validate]

ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.