Sha256: 904f6bfefaffcb670182c43bf918cb6673c6b1714c013e9e640811e9b219fe9d
Contents?: true
Size: 861 Bytes
Versions: 6
Compression:
Stored size: 861 Bytes
Contents
%w[ metadata manifest spine guide bindings ].each { |f| require "epub/publication/package/#{f}" } module EPUB module Publication class Package attr_accessor :book, :version, :unique_identifier_id, :prefix, :xml_lang, :dir, :id attr_reader :metadata, :manifest, :spine, :guide, :unique_identifier alias lang xml_lang alias lang= xml_lang= def metadata=(metadata) metadata.package = self @metadata = metadata end def manifest=(manifest) manifest.package = self @manifest = manifest end def spine=(spine) spine.package = self @spine = spine end def guide=(guide) guide.package = self @guide = guide end def unique_identifier @metadata.unique_identifier end end end end
Version data entries
6 entries across 6 versions & 1 rubygems