# File lib/feedparser/text-output.rb, line 37 def to_text(localtime = true, wrapto = false) s = '' s += "Type: #{@type}\n" s += "Encoding: #{@encoding}\n" s += "Title: #{@title}\n" s += "Link: #{@link}\n" if @description s += "Description: #{@description.html2text}\n" else s += "Description:\n" end s += "Creator: #{@creator}\n" s += "\n" @items.each do |i| s += '*' * 40 + "\n" s += i.to_text(localtime, wrapto) end s end