We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54ce18d commit 2228570Copy full SHA for 2228570
lib/rspec_api_documentation/views/slate_example.rb
@@ -5,22 +5,6 @@ def initialize(example, configuration)
5
super
6
self.template_name = "rspec_api_documentation/slate_example"
7
end
8
-
9
- def write
10
- File.open(configuration.docs_dir.join("#{FILENAME}.#{extension}"), 'w+') do |file|
11
12
- sections.each do |section|
13
- file.write "# #{section[:resource_name]}\n\n"
14
15
- section[:examples].examples.sort_by!(&:description) unless configuration.keep_source_order
16
17
- section[:examples].examples.each do |example|
18
- markup_example = markup_example_class.new(example, configuration)
19
- file.write markup_example.render
20
- end
21
22
23
24
25
26
0 commit comments