Class: OpenXml::Docx::Properties::Numbering

Inherits:
ComplexProperty show all
Defined in:
lib/openxml/docx/properties/numbering.rb

Constant Summary

Constants included from AttributeBuilder

AttributeBuilder::VALID_THEME_COLORS, AttributeBuilder::VALID_TYPES

Instance Attribute Summary

Attributes inherited from BaseProperty

#value

Instance Method Summary collapse

Methods inherited from ComplexProperty

#render?

Methods included from AttributeBuilder

#attributes, included, #render?

Methods inherited from BaseProperty

#default_name, #default_tag, name, #name, #render?, tag, #tag

Instance Method Details

#to_xml(xml) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/openxml/docx/properties/numbering.rb', line 10

def to_xml(xml)
  return unless render?
  xml["w"].public_send(tag) {
    xml_attributes.each do |tag_name, value|
      xml.public_send(tag_name, "w:val" => value)
    end
  }
end