Method: Coco::HtmlFilesWriter#initialize

Defined in:
lib/coco/writer/html_files_writer.rb

#initialize(html_files, theme = 'light') ⇒ HtmlFilesWriter

Public: Initialize a new HtmlFilesWriter.

html_files - Hash, key is filename, value is html content. theme - The String name of the theme. Default is light.



11
12
13
14
# File 'lib/coco/writer/html_files_writer.rb', line 11

def initialize(html_files, theme = 'light')
  @html_files = html_files
  @html_dir = HtmlDirectory.new(theme)
end