Class TaskJuggler::XMLBlob
In: lib/taskjuggler/XMLElement.rb
Parent: XMLElement

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.

Methods

new   to_s  

Public Class methods

[Source]

# File lib/taskjuggler/XMLElement.rb, line 216
    def initialize(blob = '')
      super(nil, {})
      @blob = blob
    end

Public Instance methods

[Source]

# File lib/taskjuggler/XMLElement.rb, line 221
    def to_s(indent)
      out = ''
      @blob.each_utf8_char do |c|
        out += (c == "\n" ? "\n" + ' ' * indent : c)
      end
      out
    end

[Validate]