Class: EpubWorm::Manifest
- Inherits:
-
Object
- Object
- EpubWorm::Manifest
- Includes:
- Enumerable
- Defined in:
- lib/epub_worm/manifest.rb
Instance Attribute Summary collapse
-
#manifest_items ⇒ Object
Returns the value of attribute manifest_items.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(manifest_items: []) ⇒ Manifest
constructor
A new instance of Manifest.
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_items ⇒ Object
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 |