dir.c: docs for Dir.each_child and Dir.children
* dir.c: [DOC] fix examples for Dir.each_child and Dir.children. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7e323b5dfe
commit
135c7a53ec
4
dir.c
4
dir.c
@ -2680,7 +2680,7 @@ dir_each_child(VALUE dir)
|
|||||||
*
|
*
|
||||||
* If no block is given, an enumerator is returned instead.
|
* If no block is given, an enumerator is returned instead.
|
||||||
*
|
*
|
||||||
* Dir.foreach("testdir") {|x| puts "Got #{x}" }
|
* Dir.each_child("testdir") {|x| puts "Got #{x}" }
|
||||||
*
|
*
|
||||||
* <em>produces:</em>
|
* <em>produces:</em>
|
||||||
*
|
*
|
||||||
@ -2719,7 +2719,7 @@ dir_collect_children(VALUE dir)
|
|||||||
* The optional <i>encoding</i> keyword argument specifies the encoding of the
|
* The optional <i>encoding</i> keyword argument specifies the encoding of the
|
||||||
* directory. If not specified, the filesystem encoding is used.
|
* directory. If not specified, the filesystem encoding is used.
|
||||||
*
|
*
|
||||||
* Dir.entries("testdir") #=> ["config.h", "main.rb"]
|
* Dir.children("testdir") #=> ["config.h", "main.rb"]
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user