class TaskJuggler::XMLComment
This is a specialized XMLElement
to represent a comment.
Public Class Methods
new(text = +'')
click to toggle source
Calls superclass method
TaskJuggler::XMLElement::new
# File lib/taskjuggler/XMLElement.rb, line 202 def initialize(text = +'') super(nil, {}) @text = text end
Public Instance Methods
to_s(indent)
click to toggle source
# File lib/taskjuggler/XMLElement.rb, line 207 def to_s(indent) '<!-- ' + canonicalize_comment(@text) + " -->\n#{' ' * indent}" end