Class: OpenXml::Docx::Elements::Paragraph

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasProperties

included, #property_xml

Instance Attribute Details

#section_propertiesObject

Returns the value of attribute section_properties.



7
8
9
# File 'lib/openxml/docx/elements/paragraph.rb', line 7

def section_properties
  @section_properties
end

Instance Method Details

#to_xml(xml) ⇒ Object



50
51
52
53
54
55
56
# 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