Module: EPUB::Publication::FixedLayout
- Defined in:
- lib/epub/publication/fixed_layout.rb
Defined Under Namespace
Modules: ContentDocumentMixin, ItemMixin, ItemrefMixin, MetadataMixin, PackageMixin, Rendition Classes: UnsupportedRenditionValue
Constant Summary collapse
- PREFIX_KEY =
'rendition'.freeze
- PREFIX_VALUE =
'http://www.idpf.org/vocab/rendition/#'.freeze
- RENDITION_PROPERTIES =
{ 'layout' => ['reflowable'.freeze, 'pre-paginated'.freeze].freeze, 'orientation' => ['auto'.freeze, 'landscape'.freeze, 'portrait'.freeze].freeze, 'spread' => ['auto'.freeze, 'none'.freeze, 'landscape'.freeze, 'portrait'.freeze, 'both'.freeze].freeze }.freeze
Class Method Summary collapse
Class Method Details
.included(package_class) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/epub/publication/fixed_layout.rb', line 16 def included(package_class) [ [Package, PackageMixin], [Package::Metadata, MetadataMixin], [Package::Spine::Itemref, ItemrefMixin], [Package::Manifest::Item, ItemMixin], [ContentDocument::XHTML, ContentDocumentMixin], ].each do |(base, mixin)| base.__send__ :include, mixin end end |