Class: CC2HTML::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/cc2html/builder.rb

Direct Known Subclasses

EpubBuilder

Instance Method Summary collapse

Constructor Details

#initialize(manifest, dest_name) ⇒ Builder

Returns a new instance of Builder.



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/cc2html/builder.rb', line 3

def initialize(manifest, dest_name)
  @dest_name = dest_name
  @manifest = manifest
  @root_items = manifest.organizations.organization.item.items
  @resources = manifest.resources.resources
  lom = manifest..lom
  @title = lom.general.title.title
  @description = lom.general.description.description if lom.general.description
  if lom.rights && lom.rights.description
    @copy_info = lom.rights.description.description
  end
end