aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-03-08 06:14:03 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-16 15:47:27 +0900
commit61a29a41e1d0d11a9963315aa86d25ed690124c0 (patch)
treedc7518239bfb71dff67eedc1cbf495a6c9c46de5 /lib/rdoc
parent971a0cd246db6578e1ea8760a903e1a23e3681f3 (diff)
downloadruby-61a29a41e1d0d11a9963315aa86d25ed690124c0.tar.gz
[ruby/rdoc] Allow empty .rdoc_options
https://github.com/ruby/rdoc/commit/0c8cb25b50
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/rdoc.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index c47f639cc4..df04646f3c 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -166,6 +166,8 @@ class RDoc::RDoc
rescue Psych::SyntaxError
end
+ return RDoc::Options.new if options == false # Allow empty file.
+
raise RDoc::Error, "#{options_file} is not a valid rdoc options file" unless
RDoc::Options === options or Hash === options