Class: ODF::PageLayout
Instance Method Summary collapse
-
#initialize(name) ⇒ PageLayout
constructor
A new instance of PageLayout.
- #xml ⇒ Object
Methods inherited from Container
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
#xml ⇒ Object
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 |