From 48653d5ef0ed47469d64170d70c8c2a9f21f159e Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 5 Sep 2005 08:29:52 +0000 Subject: * lib/ostruct.rb: a patch from Florian Gross merged to allow recursive inspect (and to_s) for OpenStruct. [ruby-core:05532] * lib/observer.rb: a patch from nornagon merged to allow arbitrary names for update methods. [ruby-core:05416] * eval.c (rb_f_fcall): new method to avoid inefficiency of obj.instance_eval{send(...)} tricks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/find.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/find.rb') diff --git a/lib/find.rb b/lib/find.rb index 52efde81fd..08a3908c5b 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -33,10 +33,9 @@ module Find # See the +Find+ module documentation for an example. # def find(*paths) # :yield: path - paths.collect!{|d| d.dup} + paths.collect!{|d| open(d){}; d.dup} while file = paths.shift catch(:prune) do - next unless File.exist? file yield file.dup.taint begin if File.lstat(file).directory? then -- cgit v1.2.3