summaryrefslogtreecommitdiff
path: root/lib/rdoc/options.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-13 13:16:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-13 13:16:56 +0000
commit0fb782ea28b61035d56a8fb1f32754a18f2cee60 (patch)
treedc489fbb0ddd02bd79691d25fcdc3ee35e127bef /lib/rdoc/options.rb
parent6feee125b96cd03794fd670ad02ba16ce7120b0d (diff)
rdoc: ignore garbage files
* lib/rdoc/options.rb (RDoc::Options#init_ivars): exclude backup files by default. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/options.rb')
-rw-r--r--lib/rdoc/options.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb
index 801a84b21f9..f83972b881e 100644
--- a/lib/rdoc/options.rb
+++ b/lib/rdoc/options.rb
@@ -344,7 +344,9 @@ class RDoc::Options
def init_ivars # :nodoc:
@dry_run = false
- @exclude = []
+ @exclude = %w[
+ ~\z \.orig\z \.rej\z \.bak\z
+ ]
@files = nil
@force_output = false
@force_update = true