Class: TaskJuggler::XMLNamedText
- Inherits:
-
XMLElement
- Object
- XMLElement
- TaskJuggler::XMLNamedText
- 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
-
#initialize(text, name, attributes = {}) ⇒ XMLNamedText
constructor
A new instance of XMLNamedText.
Methods inherited from XMLElement
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 |