Module: OpenXml::Docx::PropertyBuilder
- Included in:
- Elements::Container, Section, Style
- Defined in:
- lib/openxml/docx/property_builder.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/openxml/docx/property_builder.rb', line 5 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#property_xml(xml) ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'lib/openxml/docx/property_builder.rb', line 53 def property_xml(xml) props = properties.keys.map(&method(:send)).compact return if props.none?(&:render?) xml[namespace].public_send(properties_tag) { props.each { |prop| prop.to_xml(xml) } } end |