lib/rspec_api_documentation/views/slate_example.rb
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