Class: OpenXml::Docx::Elements::Ruby
- Inherits:
-
OpenXml::Docx::Element
- Object
- Element
- OpenXml::Docx::Element
- OpenXml::Docx::Elements::Ruby
- Includes:
- HasChildren, HasProperties
- Defined in:
- lib/openxml/docx/elements/ruby.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#ruby ⇒ Object
Returns the value of attribute ruby.
Instance Method Summary collapse
Methods included from HasProperties
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
6 7 8 |
# File 'lib/openxml/docx/elements/ruby.rb', line 6 def base @base end |
#ruby ⇒ Object
Returns the value of attribute ruby.
6 7 8 |
# File 'lib/openxml/docx/elements/ruby.rb', line 6 def ruby @ruby end |
Instance Method Details
#to_xml(xml) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/openxml/docx/elements/ruby.rb', line 24 def to_xml(xml) xml[namespace].public_send(tag, xml_attributes) { property_xml(xml) ruby_text_xml(xml) base_text_xml(xml) } end |