Method: Epub::Package#initialize
- Defined in:
- lib/epub-reader/package.rb
#initialize(rootfile, file) ⇒ Package
Returns a new instance of Package.
4 5 6 7 8 9 |
# File 'lib/epub-reader/package.rb', line 4 def initialize(rootfile, file) @rootfile = rootfile @file = file @package = get_package_content(file) @xml = Nokogiri::XML(@package).remove_namespaces! end |