lib/mime/message_content.rb
# Writes the specified message content to the underlying output stream.
#
Writes the specified message content to the underlying output stream.
Writes the specified message content to the underlying output stream .
def write_content(content)
        raise "circular object reference detected." if @path.include?(content)
        @path.push(content)
        if content.is_a?(Message)
          write_header_field("Content-Type", "message/rfc822")
          write_line
        end
        content.write(self)
        @path.pop
      end
def write_content ( content ) raise "circular object reference detected." if @path . include? ( content ) @path . push ( content ) if content . is_a? ( Message ) write_header_field ( "Content-Type" , "message/rfc822" ) write_line end content . write ( self ) @path . pop end
Writes the specified message content to the underlying output stream.
Writes the specified message content to the underlying output stream .
# ensure that @path does not contain the given message content # add the given message content to @path # write the given message content # remove the given message content from @path
content