zipmark/rspec_api_documentation

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

Summary

Maintainability
A
0 mins
Test Coverage
module RspecApiDocumentation
  module Views
    class SlateExample < MarkdownExample
      def initialize(example, configuration)
        super
        self.template_name = "rspec_api_documentation/slate_example"
      end

      def parameters
        super.map do |parameter|
          parameter.merge({
            :required => parameter[:required] == 'true' ? true : false,
          })
        end
      end
    end
  end
end