# File lib/ihelp.rb, line 974 def to_html tag = self.class.to_s.split("::").last tag = "PRE" if tag == "VERB" xmlstr = %(<#{tag}> #{body if respond_to? :body} #{contents.map{|c|c.to_html} if respond_to? :content} </#{tag}>) REXML::Document.new(xmlstr) end
# File lib/ihelp.rb, line 959 def to_text RI::TextFormatter.allocate.conv_html( if respond_to? :body body else "" end + if respond_to? :contents contents.map{|c| c.to_text }.join("\n\n") else "" end ).gsub(/<\/?..>/, '') end
[Validate]
Generated with the Darkfish Rdoc Generator 2.