Method: Jazzy::SourceModule#initialize

Defined in:
lib/jazzy/source_module.rb

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

Returns a new instance of SourceModule.



19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/jazzy/source_module.rb', line 19

def initialize(options, docs, doc_structure, doc_coverage)
  self.docs = docs
  self.root_path = options.source_directory
  self.doc_structure = doc_structure
  self.doc_coverage = doc_coverage
  self.name = options.module_name
  self.author_name = options.author_name
  self.github_url = options.github_url
  self.github_file_prefix = options.github_file_prefix
  self.author_url = options.author_url
  return unless options.dash_url
  self.dash_url = "dash-feed://#{URI.encode(options.dash_url.to_s, /\W/)}"
end