Class: Docrb::DocCompiler
- Inherits:
-
Object
- Object
- Docrb::DocCompiler
- Defined in:
- lib/docrb/doc_compiler.rb
Instance Method Summary collapse
-
#initialize(source, spec, output) ⇒ DocCompiler
constructor
A new instance of DocCompiler.
- #run! ⇒ Object
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 |