Class: ComicBook::Adapter
- Inherits:
-
Object
- Object
- ComicBook::Adapter
- Defined in:
- lib/comic_book/adapter.rb
Instance Method Summary collapse
- #archive(options = {}) ⇒ Object
- #extract(options = {}) ⇒ Object
-
#initialize(path) ⇒ Adapter
constructor
A new instance of Adapter.
- #pages ⇒ Object
Constructor Details
#initialize(path) ⇒ Adapter
Returns a new instance of Adapter.
6 7 8 |
# File 'lib/comic_book/adapter.rb', line 6 def initialize path @path = File. path end |
Instance Method Details
#archive(options = {}) ⇒ Object
10 11 12 |
# File 'lib/comic_book/adapter.rb', line 10 def archive = {} raise NotImplementedError, "#{self.class} must implement #archive" end |
#extract(options = {}) ⇒ Object
14 15 16 |
# File 'lib/comic_book/adapter.rb', line 14 def extract = {} raise NotImplementedError, "#{self.class} must implement #extract" end |
#pages ⇒ Object
18 19 20 |
# File 'lib/comic_book/adapter.rb', line 18 def pages raise NotImplementedError, "#{self.class} must implement #pages" end |