Module: Instadoc

Defined in:
lib/instadoc/java/java_code.rb,
lib/instadoc.rb,
lib/instadoc/config.rb,
lib/instadoc/version.rb,
lib/instadoc/analyzer.rb,
lib/instadoc/html_builder.rb,
lib/instadoc/java/java_file.rb,
lib/instadoc/java/pathname_seeker.rb

Overview

encoding: utf-8

Defined Under Namespace

Modules: Java Classes: Analyzer, Config, HtmlBuilder

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.configObject



24
25
26
# File 'lib/instadoc.rb', line 24

def Instadoc.config
  @config ||= Config.new
end

.generate_html(verbose, source_path, output_path, hyperlink) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/instadoc.rb', line 11

def Instadoc.generate_html(verbose, source_path, output_path, hyperlink)

  config.verbose = verbose
  config.hyperlink = hyperlink
  config.input_path = Pathname.new(source_path)

  File.new(output_path, 'w')
  config.output_path = Pathname.new(output_path)

  analyzer = Instadoc::Analyzer.new(config)
  analyzer.create_documentation()
end