Class: EPUB::OCF::PhysicalContainer::UnpackedDirectory

Inherits:
EPUB::OCF::PhysicalContainer show all
Defined in:
lib/epub/ocf/physical_container/unpacked_directory.rb

Instance Method Summary collapse

Methods inherited from EPUB::OCF::PhysicalContainer

adapter, adapter=, #initialize, open, read

Constructor Details

This class inherits a constructor from EPUB::OCF::PhysicalContainer

Instance Method Details

#open {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



5
6
7
# File 'lib/epub/ocf/physical_container/unpacked_directory.rb', line 5

def open
  yield self
end

#read(path_name) ⇒ Object



9
10
11
# File 'lib/epub/ocf/physical_container/unpacked_directory.rb', line 9

def read(path_name)
  ::File.read(::File.join(@container_path, path_name))
end