class OpenXml::Docx::Elements::Text
Attributes
text[R]
Public Class Methods
new(text=nil)
click to toggle source
# File lib/openxml/docx/elements/text.rb, line 11 def initialize(text=nil) @text = text end
Public Instance Methods
to_xml(xml)
click to toggle source
# File lib/openxml/docx/elements/text.rb, line 15 def to_xml(xml) xml["w"].public_send(tag, text, xml_attributes) end