Class: OpenXml::Docx::Elements::Ruby
- Defined in:
- lib/openxml/docx/elements/ruby.rb
Constant Summary
Constants included from AttributeBuilder
AttributeBuilder::VALID_THEME_COLORS, AttributeBuilder::VALID_TYPES
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#ruby ⇒ Object
Returns the value of attribute ruby.
Attributes inherited from Container
Instance Method Summary collapse
Methods inherited from Container
Methods included from PropertyBuilder
Methods inherited from Element
#name, name, #namespace, tag, #tag
Methods included from AttributeBuilder
#attributes, included, #render?
Constructor Details
This class inherits a constructor from OpenXml::Docx::Elements::Container
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
5 6 7 |
# File 'lib/openxml/docx/elements/ruby.rb', line 5 def base @base end |
#ruby ⇒ Object
Returns the value of attribute ruby.
5 6 7 |
# File 'lib/openxml/docx/elements/ruby.rb', line 5 def ruby @ruby end |
Instance Method Details
#to_xml(xml) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/openxml/docx/elements/ruby.rb', line 23 def to_xml(xml) xml[namespace].public_send(tag, xml_attributes) { property_xml(xml) ruby_text_xml(xml) base_text_xml(xml) } end |