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 201 def initialize(text = '') super(nil, {}) @text = text end
Public Instance Methods
to_s(indent)
click to toggle source
# File lib/taskjuggler/XMLElement.rb, line 206 def to_s(indent) '<!-- ' + canonicalize_comment(@text) + " -->\n#{' ' * indent}" end