mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
8ccd05c958
commit
d52be39fb7
2 changed files with 7 additions and 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue