Class: OpenXml::Docx::Properties::ComplexProperty
- Inherits:
-
BaseProperty
- Object
- BaseProperty
- OpenXml::Docx::Properties::ComplexProperty
- Includes:
- AttributeBuilder
- Defined in:
- lib/openxml/docx/properties/complex_property.rb
Direct Known Subclasses
Border, Color, Column, ConditionalFormatting, DocumentGrid, EastAsianLayout, Font, FooterReference, Frame, HeaderReference, Indentation, Language, LatentStylesException, LineNumbering, ManualWidth, Numbering, PageBorders, PageMargins, PageNumbering, PageSize, PaperSource, ParagraphBorders, Shading, Spacing, TableBorder, TableCellBorder, TableCellMargin, TableCellSpacing, TableCellWidth, TableIndent, TableLayout, TableLook, TablePPr, TableRowHeight, TableWidth, Underline, WAfter, WBefore
Constant Summary
Constants included from AttributeBuilder
AttributeBuilder::VALID_THEME_COLORS, AttributeBuilder::VALID_TYPES
Instance Attribute Summary
Attributes inherited from BaseProperty
Instance Method Summary collapse
Methods included from AttributeBuilder
Methods inherited from BaseProperty
#default_name, #default_namespace, #default_tag, #initialize, #name, name, namespace, #namespace, #tag, tag, tag_is_one_of
Constructor Details
This class inherits a constructor from OpenXml::Docx::Properties::BaseProperty
Instance Method Details
#render? ⇒ Boolean
12 13 14 |
# File 'lib/openxml/docx/properties/complex_property.rb', line 12 def render? !xml_attributes.empty? end |
#to_xml(xml) ⇒ Object
7 8 9 10 |
# File 'lib/openxml/docx/properties/complex_property.rb', line 7 def to_xml(xml) return unless render? xml[namespace].public_send(tag, xml_attributes) end |