class RspecApiDocumentation::Views::MarkdownIndex

Public Class Methods

new(index, configuration) click to toggle source
Calls superclass method
# 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

Public Instance Methods

examples() click to toggle source
# File lib/rspec_api_documentation/views/markdown_index.rb, line 9
def examples
  @index.examples.map { |example| MarkdownExample.new(example, @configuration) }
end