Class: OpenXml::Docx::Elements::Paragraph
- Inherits:
-
OpenXml::Docx::Element
- Object
- Element
- OpenXml::Docx::Element
- OpenXml::Docx::Elements::Paragraph
- Includes:
- HasChildren, HasProperties
- Defined in:
- lib/openxml/docx/elements/paragraph.rb
Instance Attribute Summary collapse
-
#section_properties ⇒ Object
Returns the value of attribute section_properties.
Instance Method Summary collapse
Methods included from HasProperties
Instance Attribute Details
#section_properties ⇒ Object
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 |