class RspecApiDocumentation::Views::SlateExample
Public Class Methods
new(example, configuration)
click to toggle source
Calls superclass method
RspecApiDocumentation::Views::MarkdownExample::new
# File lib/rspec_api_documentation/views/slate_example.rb, line 4 def initialize(example, configuration) super self.template_name = "rspec_api_documentation/slate_example" end
Public Instance Methods
parameters()
click to toggle source
Calls superclass method
RspecApiDocumentation::Views::MarkdownExample#parameters
# File lib/rspec_api_documentation/views/slate_example.rb, line 9 def parameters super.map do |parameter| parameter.merge({ :required => parameter[:required] == 'true' ? true : false, }) end end