Class: ODF::PageLayout

Inherits:
Container show all
Defined in:
lib/odf/page_layout.rb

Instance Method Summary collapse

Methods inherited from Container

contains, create

Constructor Details

#initialize(name) ⇒ PageLayout

Returns a new instance of PageLayout.



28
29
30
# File 'lib/odf/page_layout.rb', line 28

def initialize(name)
  @name = name
end

Instance Method Details

#xmlObject



32
33
34
35
36
# File 'lib/odf/page_layout.rb', line 32

def xml
  Builder::XmlMarkup.new.tag! 'style:page-layout', 'style:name' => @name do |b|
    b << properties_xml
  end
end