From d52be39fb75529ae996a751c76027ce7f05440f8 Mon Sep 17 00:00:00 2001 From: ktsj Date: Sat, 17 Sep 2011 03:49:20 +0000 Subject: * lib/find.rb (Find.find): add documentation that Find.find without block returns an enumerator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/find.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/find.rb') diff --git a/lib/find.rb b/lib/find.rb index cd2d1bf38b..571609cdef 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -30,6 +30,8 @@ module Find # Calls the associated block with the name of every file and directory listed # as arguments, then recursively on their subdirectories, and so on. # + # Returns an enumerator if no block is given. + # # See the +Find+ module documentation for an example. # def find(*paths) # :yield: path -- cgit v1.2.3