Class: OpenXml::DrawingML::Elements::Text

Inherits:
Element
  • Object
show all
Defined in:
lib/openxml/drawingml/elements/text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject

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