Class: TaskJuggler::XMLNamedText

Inherits:
XMLElement show all
Defined in:
lib/taskjuggler/XMLElement.rb

Overview

This is a convenience class that allows the creation of an XMLText nested into an XMLElement. The name and attributes belong to the XMLElement, the text to the XMLText.

Instance Method Summary collapse

Methods inherited from XMLElement

#<<, #[], #[]=, #to_s

Constructor Details

#initialize(text, name, attributes = {}) ⇒ XMLNamedText

Returns a new instance of XMLNamedText.



191
192
193
194
# File 'lib/taskjuggler/XMLElement.rb', line 191

def initialize(text, name, attributes = {})
  super(name, attributes)
  self << XMLText.new(text)
end