diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-05 08:29:52 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-05 08:29:52 +0000 |
| commit | 28f806a119f0c3acaf4b91b8b652b324282b450d (patch) | |
| tree | df86f2bf64022459acef5eea33442fb3d3ebcc27 /lib/find.rb | |
| parent | e6e884c05e2f8a67a1d3d04e869fe3888e223b18 (diff) | |
| download | ruby-28f806a119f0c3acaf4b91b8b652b324282b450d.tar.gz ruby-28f806a119f0c3acaf4b91b8b652b324282b450d.tar.xz ruby-28f806a119f0c3acaf4b91b8b652b324282b450d.zip | |
* lib/ostruct.rb: a patch from Florian Gross <florgro@gmail.com>
merged to allow recursive inspect (and to_s) for OpenStruct.
[ruby-core:05532]
* lib/observer.rb: a patch from nornagon <nornagon@gmail.com>
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: http://svn.ruby-lang.org/repos/ruby/trunk@9081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/find.rb')
| -rw-r--r-- | lib/find.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/find.rb b/lib/find.rb index 52efde81f..08a3908c5 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 |
