Skip to content

Commit

Permalink
Removed redundant 'write' method from slate example.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpocklin committed Jun 1, 2016
1 parent 54ce18d commit 2228570
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/rspec_api_documentation/views/slate_example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,6 @@ def initialize(example, configuration)
super
self.template_name = "rspec_api_documentation/slate_example"
end

def write
File.open(configuration.docs_dir.join("#{FILENAME}.#{extension}"), 'w+') do |file|

sections.each do |section|
file.write "# #{section[:resource_name]}\n\n"

section[:examples].examples.sort_by!(&:description) unless configuration.keep_source_order

section[:examples].examples.each do |example|
markup_example = markup_example_class.new(example, configuration)
file.write markup_example.render
end
end
end
end
end
end
end

0 comments on commit 2228570

Please sign in to comment.