aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find.rb
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-03 15:28:58 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-03 15:28:58 +0000
commitc754b227978af124734fb90be703c923b0752519 (patch)
tree79a8ec2f48d00a27ee5e96c7ea6393d756c3befe /lib/find.rb
parentd0a9ee1e86c3cfd410ed39d693bc14431baec420 (diff)
downloadruby-c754b227978af124734fb90be703c923b0752519.tar.gz
* lib/find.rb (Find#find): should pass ignore_error option to enumerators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/find.rb')
-rw-r--r--lib/find.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/find.rb b/lib/find.rb
index c5fd35b1d7..46e2512b9e 100644
--- a/lib/find.rb
+++ b/lib/find.rb
@@ -35,7 +35,7 @@ module Find
# See the +Find+ module documentation for an example.
#
def find(*paths, ignore_error: true) # :yield: path
- block_given? or return enum_for(__method__, *paths)
+ block_given? or return enum_for(__method__, *paths, ignore_error: ignore_error)
fs_encoding = Encoding.find("filesystem")