lib/epub/publication/package.rb in epub-parser-0.0.2 vs lib/epub/publication/package.rb in epub-parser-0.0.3

- old
+ new

@@ -2,11 +2,11 @@ module EPUB module Publication class Package attr_accessor :version, :unique_identifier, :prefix, :xml_lang, :dir, :id - attr_reader :metadata, :manifest, :spine + attr_reader :metadata, :manifest, :spine, :guide alias lang xml_lang alias lang= xml_lang= def metadata=(metadata) end @@ -17,9 +17,14 @@ end def spine=(spine) spine.package = self @spine = spine + end + + def guide=(guide) + guide.package = self + @guide = guide end end end end