Class: Docrb::DocCompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/docrb/doc_compiler.rb

Instance Method Summary collapse

Constructor Details

#initialize(source, spec, output) ⇒ DocCompiler

Returns a new instance of DocCompiler.



5
6
7
8
9
# File 'lib/docrb/doc_compiler.rb', line 5

def initialize(source, spec, output)
  @source = source
  @spec = spec
  @output = output
end

Instance Method Details

#run!Object



11
12
13
# File 'lib/docrb/doc_compiler.rb', line 11

def run!
  Renderer.new(@source, @spec, @output).render
end