Class: RODF::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.
27 28 29 |
# File 'lib/rodf/page_layout.rb', line 27 def initialize(name) @name = name end |
Instance Method Details
#xml ⇒ Object
31 32 33 34 35 |
# File 'lib/rodf/page_layout.rb', line 31 def xml Builder::XmlMarkup.new.tag! 'style:page-layout', 'style:name' => @name do |b| b << properties_xml end end |