Class: Pact::Doc::Markdown::Generator

Inherits:
Generator
  • Object
show all
Defined in:
lib/pact/doc/markdown/generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Generator

#call

Constructor Details

#initialize(pact_dir, doc_dir) ⇒ Generator

Returns a new instance of Generator.



9
10
11
12
13
14
15
16
# File 'lib/pact/doc/markdown/generator.rb', line 9

def initialize pact_dir, doc_dir
  super(pact_dir, doc_dir,
    consumer_contract_renderer: ConsumerContractRenderer,
    doc_type: 'markdown',
    file_extension: '.md',
    index_renderer: IndexRenderer,
    index_name: 'README')
end

Class Method Details

.call(pact_dir, doc_dir) ⇒ Object



18
19
20
# File 'lib/pact/doc/markdown/generator.rb', line 18

def self.call pact_dir, doc_dir
  new(pact_dir, doc_dir).call
end