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

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

Instance Attribute Summary

Attributes inherited from BaseProperty

#value

Instance Method Summary collapse

Methods inherited from ComplexProperty

#render?

Methods inherited from BaseProperty

#default_name, #default_namespace, #default_tag, #initialize, name, #name, namespace, #namespace, #render?, tag, #tag, tag_is_one_of

Constructor Details

This class inherits a constructor from OpenXml::Docx::Properties::BaseProperty

Instance Method Details

#to_xml(xml) ⇒ Object



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

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