class Docxtor2::Package::Document::PageBreak

Public Class Methods

new(*args, &block) click to toggle source
# File lib/docxtor2/package/document/page_break.rb, line 3
def initialize(*args, &block)
  super(*args, &block)
end

Public Instance Methods

render(xml) click to toggle source
# File lib/docxtor2/package/document/page_break.rb, line 7
def render(xml)
  super(xml)
  write_element(:p) do
    write_element(:r) do
      @xml.w :br, 'w:type' => 'page'
    end
  end
end