This is a specialized XMLElement to represent
XML blobs. The content is not interpreted and must be valid XML in the
content it is added.
Public Class Methods
new(blob = '')click to toggle source
# File lib/taskjuggler/XMLElement.rb, line 214definitialize(blob = '')
super(nil, {})
raiseArgumentError, "blob may not be nil"ifblob.nil?@blob = blobend
Public Instance Methods
to_s(indent)click to toggle source
# File lib/taskjuggler/XMLElement.rb, line 220defto_s(indent)
out = ''@blob.each_utf8_chardo|c|out+= (c=="\n"?"\n"+' ' * indent:c)
endoutend