diff options
author | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-17 03:49:20 +0000 |
---|---|---|
committer | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-17 03:49:20 +0000 |
commit | d52be39fb75529ae996a751c76027ce7f05440f8 (patch) | |
tree | 07788f711ecece12898de9ddf49571665cad6620 | |
parent | 8ccd05c958fcf75d0e547d3c7786e4f27c737051 (diff) | |
download | ruby-d52be39fb75529ae996a751c76027ce7f05440f8.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/find.rb | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Sep 17 12:44:04 2011 Kazuki Tsujimoto <kazuki@callcc.net> + + * lib/find.rb (Find.find): add documentation that Find.find + without block returns an enumerator. + Thu Sep 15 11:39:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * gc.c (mark_entry, mark_key, mark_keyvalue): adjust callback 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 |