Class: Odf::Element::DrawPage

Inherits:
Abstract
  • Object
show all
Defined in:
lib/odf/element/draw_page.rb

Constant Summary collapse

XML_TAG =
'draw:page'.freeze

Instance Attribute Summary

Attributes inherited from Abstract

#parent, #root

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Abstract

#document, #initialize, #valid_options, #xml_tag

Constructor Details

This class inherits a constructor from Odf::Element::Abstract

Class Method Details

.build(document, options = {}) ⇒ Object



6
7
8
# File 'lib/odf/element/draw_page.rb', line 6

def self.build(document, options = {})
  new(document, options)
end

Instance Method Details

#add_frame(options = {}) ⇒ Object



10
11
12
# File 'lib/odf/element/draw_page.rb', line 10

def add_frame(options = {})
  Odf::Element::DrawFrame.build(self, options)
end