class OpenXml::Docx::Elements::Paragraph

Attributes

section_properties[R]

Public Instance Methods

section_properties=(section) click to toggle source
# File lib/openxml/docx/elements/paragraph.rb, line 45
def section_properties=(section)
  raise ArgumentError, "Section properties must be an instance of OpenXml::Docx::Section" unless section.is_a?(OpenXml::Docx::Section)
  @section_properties = section
end
to_xml(xml) click to toggle source
# File lib/openxml/docx/elements/paragraph.rb, line 50
def to_xml(xml)
  xml[namespace].public_send(tag, xml_attributes) {
    section_properties.to_xml(xml) unless section_properties.nil?
    property_xml(xml)
    children.each { |child| child.to_xml(xml) }
  }
end