Class: EpubWorm::Manifest

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/epub_worm/manifest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(manifest_items: []) ⇒ Manifest



9
10
11
# File 'lib/epub_worm/manifest.rb', line 9

def initialize(manifest_items: [])
  @manifest_items = manifest_items
end

Instance Attribute Details

#manifest_itemsObject

Returns the value of attribute manifest_items.



7
8
9
# File 'lib/epub_worm/manifest.rb', line 7

def manifest_items
  @manifest_items
end

Instance Method Details

#each(&block) ⇒ Object



13
14
15
# File 'lib/epub_worm/manifest.rb', line 13

def each(&block)
  manifest_items.each(&block)
end