class TaskJuggler::XMLNamedText

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.

Public Class Methods

new(text, name, attributes = {}) click to toggle source
Calls superclass method TaskJuggler::XMLElement::new
# File lib/taskjuggler/XMLElement.rb, line 191
def initialize(text, name, attributes = {})
  super(name, attributes)
  self << XMLText.new(text)
end