summaryrefslogtreecommitdiffstats
path: root/lib/rdoc/rdoc.rb
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-04 05:03:00 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-04 05:03:00 +0000
commit69b53a98a15358930f1e35c07272e0e09a468f53 (patch)
tree1505c6664cbb1473e6818577e783e2823b7669b0 /lib/rdoc/rdoc.rb
parent7e14acd4a663e971e97d7b71dfe9dd931ba46f07 (diff)
downloadruby-69b53a98a15358930f1e35c07272e0e09a468f53.tar.gz
ruby-69b53a98a15358930f1e35c07272e0e09a468f53.tar.xz
ruby-69b53a98a15358930f1e35c07272e0e09a468f53.zip
Allow multiple --exclude options to RDoc
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/rdoc.rb')
-rw-r--r--lib/rdoc/rdoc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index 5f477f7fe..d55a40466 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -163,12 +163,12 @@ module RDoc
file_list = []
relative_files.each do |rel_file_name|
+ next if options.exclude && options.exclude =~ rel_file_name
case type = File.stat(rel_file_name).ftype
when "file"
file_list << rel_file_name if force_doc || ParserFactory.can_parse(rel_file_name)
when "directory"
next if rel_file_name == "CVS" || rel_file_name == ".svn"
- next if options.exclude && options.exclude =~ rel_file_name
dot_doc = File.join(rel_file_name, DOT_DOC_FILENAME)
if File.file?(dot_doc)
file_list.concat(parse_dot_doc_file(rel_file_name, dot_doc, options))