zipmark/rspec_api_documentation

View on GitHub
lib/rspec_api_documentation/views/markdown_index.rb

Summary

Maintainability
A
0 mins
Test Coverage
module RspecApiDocumentation
  module Views
    class MarkdownIndex < MarkupIndex
      def initialize(index, configuration)
        super
        self.template_name = "rspec_api_documentation/markdown_index"
      end

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