lib/rtf/information.rb
def to_rtf(indent=0)
         prefix = indent > 0 ? ' ' * indent : ''
         text   = StringIO.new

         text << "#{prefix}{\\info"
         text << "\n#{prefix}{\\title #{@title}}"       unless @title.nil?
         text << "\n#{prefix}{\\author #{@author}}"     unless @author.nil?
         text << "\n#{prefix}{\\company #{@company}}"   unless @company.nil?
         text << "\n#{prefix}{\\doccomm #{@comments}}"  unless @comments.nil?
         unless @created.nil?
            text << "\n#{prefix}{\\createim\\yr#{@created.year}"
            text << "\\mo#{@created.month}\\dy#{@created.day}"
            text << "\\hr#{@created.hour}\\min#{@created.min}}"
         end
         text << "\n#{prefix}}"

         text.string
      end
def to_rtf(indent=0)
         prefix = indent > 0 ? ' ' * indent : ''
         text   = StringIO.new

         text << "#{prefix}{\\info"
         text << "\n#{prefix}{\\title #{@title}}"       unless @title.nil?
         text << "\n#{prefix}{\\author #{@author}}"     unless @author.nil?
         text << "\n#{prefix}{\\company #{@company}}"   unless @company.nil?
         text << "\n#{prefix}{\\doccomm #{@comments}}"  unless @comments.nil?
         unless @created.nil?
            text << "\n#{prefix}{\\createim\\yr#{@created.year}"
            text << "\\mo#{@created.month}\\dy#{@created.day}"
            text << "\\hr#{@created.hour}\\min#{@created.min}}"
         end
         text << "\n#{prefix}}"

         text.string
      end
This method generates the RTF text for an Information object.

 ==== Parameters
 indent::  The number of spaces to prefix to the lines generated by the
           method. Defaults to zero.