Skip to content

Commit 41161fd

Browse files
authored
Fix RDoc::Options example in README (#1337)
Add minimal option setup(options.files and options.generator) to make the example code work. #1325 (comment)
1 parent 3508c0f commit 41161fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.rdoc

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ To generate documentation programmatically:
5454
require 'rdoc/rdoc'
5555

5656
options = RDoc::Options.new
57+
options.files = ['a.rb', 'b.rb']
58+
options.setup_generator 'darkfish'
5759
# see RDoc::Options
5860

5961
rdoc = RDoc::RDoc.new

0 commit comments

Comments
 (0)