class TaskJuggler::XMLBlob
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
Source
# File lib/taskjuggler/XMLElement.rb, line 228 def initialize(blob = +'') super(nil, {}) raise ArgumentError, "blob may not be nil" if blob.nil? @blob = blob end
Calls superclass method
TaskJuggler::XMLElement::new
Public Instance Methods
Source
# File lib/taskjuggler/XMLElement.rb, line 234 def to_s(indent) out = +'' @blob.each_utf8_char do |c| out += (c == "\n" ? "\n" + ' ' * indent : c) end out end