Class: OpenXml::Docx::Elements::LevelOverride

Inherits:
OpenXml::Docx::Element show all
Includes:
HasChildren, HasProperties
Defined in:
lib/openxml/docx/elements/level_override.rb

Instance Method Summary collapse

Methods included from HasProperties

included, #property_xml

Instance Method Details

#overrideObject


14
15
16
# File 'lib/openxml/docx/elements/level_override.rb', line 14

def override
  @override ||= Level.new
end

#to_xml(xml) ⇒ Object


18
19
20
21
22
23
# File 'lib/openxml/docx/elements/level_override.rb', line 18

def to_xml(xml)
  xml["w"].public_send(tag, xml_attributes) {
    start_override.to_xml(xml)
    @override.to_xml(xml) unless @override.nil?
  }
end