Class: Rpub::Epub::Container

Inherits:
XmlFile
  • Object
show all
Defined in:
lib/rpub/epub/container.rb

Instance Attribute Summary

Attributes inherited from XmlFile

#book, #xml

Instance Method Summary (collapse)

Methods inherited from XmlFile

#initialize, #to_s

Constructor Details

This class inherits a constructor from Rpub::XmlFile

Instance Method Details

- (Object) render



4
5
6
7
8
9
10
11
# File 'lib/rpub/epub/container.rb', line 4

def render
  xml.instruct!
  xml.container :version => '1.0', :xmlns => 'urn:oasis:names:tc:opendocument:xmlns:container' do
    xml.rootfiles do
      xml.rootfile 'full-path' => 'OEBPS/content.opf', 'media-type' => 'application/oebps-package+xml'
    end
  end
end