Class: OpenXml::DrawingML::Elements::Text
- Inherits:
-
Element
- Object
- Element
- OpenXml::DrawingML::Elements::Text
- Defined in:
- lib/openxml/drawingml/elements/text.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Text
constructor
A new instance of Text.
- #to_xml(xml) ⇒ Object
Constructor Details
#initialize(text) ⇒ Text
10 11 12 |
# File 'lib/openxml/drawingml/elements/text.rb', line 10 def initialize(text) self.text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
8 9 10 |
# File 'lib/openxml/drawingml/elements/text.rb', line 8 def text @text end |
Instance Method Details
#to_xml(xml) ⇒ Object
14 15 16 |
# File 'lib/openxml/drawingml/elements/text.rb', line 14 def to_xml(xml) xml[namespace].public_send(tag, text, xml_attributes) end |