Class | RI::MethodDescription |
In: |
lib/ihelp.rb
|
Parent: | Object |
Creates HTML element from the MethodDescription. Uses container_tag as the root node name and header_tag as the tag for the header element that contains the method‘s name.
Returns a REXML document with container_tag as the root element name.
# File lib/ihelp.rb, line 843 843: def to_html(container_tag="div", header_tag="h1") 844: doc = REXML::Document.new 845: root = doc.add_element(container_tag) 846: header = root.add_element(header_tag) 847: header.add_text(full_name) 848: comment.each{|c| 849: root.add_element( c.to_html.root ) 850: } 851: doc 852: end