Class: Docxtor::Document::PageBreak

Inherits:
Element
  • Object
show all
Defined in:
lib/docxtor/document/page_break.rb

Instance Attribute Summary

Attributes inherited from Element

#elements, #xml

Instance Method Summary collapse

Methods inherited from Element

#initialize, map

Constructor Details

This class inherits a constructor from Docxtor::Document::Element

Instance Method Details

#render(xml) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/docxtor/document/page_break.rb', line 4

def render(xml)
  super
  write_element(:p) do
    write_element(:r) do
      xml.w :br, 'w:type' => 'page'
    end
  end
end