Class: RI::MethodSummary
Instance Method Summary collapse
-
#to_html(container_tag = "em") ⇒ Object
Creates HTML element from the ClassDescription.
- #to_text ⇒ Object
Instance Method Details
#to_html(container_tag = "em") ⇒ Object
Creates HTML element from the ClassDescription. Puts the method’s name inside the tag named in container_tag.
Returns a REXML document with container_tag as the root element name.
940 941 942 943 944 |
# File 'lib/ihelp.rb', line 940 def to_html(container_tag="em") doc = REXML::Document.new doc.add_element(container_tag).add_text(name) doc end |
#to_text ⇒ Object
946 947 948 |
# File 'lib/ihelp.rb', line 946 def to_text name end |