Class: CbrToEpub::Output::Content::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/cbr_to_epub/output/content/data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata, input_image_files) ⇒ Data

Returns a new instance of Data.



10
11
12
13
# File 'lib/cbr_to_epub/output/content/data.rb', line 10

def initialize(, input_image_files)
  @metadata = 
  @pages = input_image_files.each_with_index.map { |image_file, index| Page.new(index, image_file)}
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



8
9
10
# File 'lib/cbr_to_epub/output/content/data.rb', line 8

def 
  @metadata
end

#pagesObject (readonly)

Returns the value of attribute pages.



8
9
10
# File 'lib/cbr_to_epub/output/content/data.rb', line 8

def pages
  @pages
end

Instance Method Details

#erb_bindingObject



15
16
17
# File 'lib/cbr_to_epub/output/content/data.rb', line 15

def erb_binding
  binding
end