# File lib/xml/dom2/comment.rb, line 63 def to_s ret = "<!--#{@value}-->" ret << "\n" if parentNode.nodeType == DOCUMENT_NODE ret end