Class: ComicBook::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/comic_book/adapter.rb

Direct Known Subclasses

CB7, CBT, CBZ

Instance Method Summary collapse

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.expand_path path
end

Instance Method Details

#archive(options = {}) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/comic_book/adapter.rb', line 10

def archive options = {}
  raise NotImplementedError, "#{self.class} must implement #archive"
end

#extract(options = {}) ⇒ Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/comic_book/adapter.rb', line 14

def extract options = {}
  raise NotImplementedError, "#{self.class} must implement #extract"
end

#pagesObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/comic_book/adapter.rb', line 18

def pages
  raise NotImplementedError, "#{self.class} must implement #pages"
end