Class: EPUB::OCF::PhysicalContainer::UnpackedURI
Instance Method Summary
collapse
adapter, adapter=, open, read
Constructor Details
#initialize(container_path) ⇒ UnpackedURI
12
13
14
|
# File 'lib/epub/ocf/physical_container/unpacked_uri.rb', line 12
def initialize(container_path)
super(URI(container_path))
end
|
Instance Method Details
#open {|_self| ... } ⇒ Object
16
17
18
|
# File 'lib/epub/ocf/physical_container/unpacked_uri.rb', line 16
def open
yield self
end
|
#read(path_name) ⇒ Object
20
21
22
|
# File 'lib/epub/ocf/physical_container/unpacked_uri.rb', line 20
def read(path_name)
(@container_path + path_name).read
end
|