Class: RspecApiDocumentation::Views::MarkdownIndex

Inherits:
MarkupIndex
  • Object
show all
Defined in:
lib/rspec_api_documentation/views/markdown_index.rb

Direct Known Subclasses

SlateIndex

Instance Method Summary collapse

Methods inherited from MarkupIndex

#sections

Constructor Details

#initialize(index, configuration) ⇒ MarkdownIndex

Returns a new instance of MarkdownIndex.



4
5
6
7
# File 'lib/rspec_api_documentation/views/markdown_index.rb', line 4

def initialize(index, configuration)
  super
  self.template_name = "rspec_api_documentation/markdown_index"
end

Instance Method Details

#examplesObject



9
10
11
# File 'lib/rspec_api_documentation/views/markdown_index.rb', line 9

def examples
  @index.examples.map { |example| MarkdownExample.new(example, @configuration) }
end