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