Method: Jazzy::SourceModule#initialize

Defined in:
lib/jazzy/source_module.rb

#initialize(docs, doc_structure, doc_coverage, docset_builder) ⇒ SourceModule

Returns a new instance of SourceModule.



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/jazzy/source_module.rb', line 24

def initialize(docs, doc_structure, doc_coverage, docset_builder)
  self.docs = docs
  self.doc_structure = doc_structure
  self.doc_coverage = doc_coverage
  title = config.readme_title || config.module_names.first
  self.readme_title = title.empty? ? 'Index' : title
  self.author_name = config.author_name
  self.author_url = config.author_url
  self.host = SourceHost.create(config)
  self.dash_feed_url = docset_builder.dash_feed_url
end