This is a specialized XMLElement to represent
a simple text.
Public Class Methods
new(text)click to toggle source
# File lib/taskjuggler/XMLElement.rb, line 158definitialize(text)
super(nil, {})
raise'Text may not be nil'unlesstext@text = textend
Public Instance Methods
to_s(indent)click to toggle source
# File lib/taskjuggler/XMLElement.rb, line 164defto_s(indent)
out = ''@text.each_utf8_chardo|c|casecwhen'<'out<<'<'when'>'out<<'>'when'&'out<<'&'elseout<<cendendoutend