mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/pathname/pathname.c (path_entries): add document suggested by
the thread [ruby-core:41959] [Bug #5859]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bb1115a2d6
commit
afb5eef4e2
2 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Jan 9 20:26:33 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/pathname/pathname.c (path_entries): add document suggested by
|
||||
the thread [ruby-core:41959] [Bug #5859].
|
||||
|
||||
Mon Jan 9 20:14:13 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/lib/socket.rb (family_addrinfo): don't require protocol
|
||||
|
|
|
@ -861,8 +861,27 @@ path_s_getwd(VALUE klass)
|
|||
* Return the entries (files and subdirectories) in the directory, each as a
|
||||
* Pathname object.
|
||||
*
|
||||
* The result contains just a filename which has no directory.
|
||||
*
|
||||
* The result may contain the current directory #<Pathname:.> and the parent
|
||||
* directory #<Pathname:..>.
|
||||
*
|
||||
* If you don't want #<Pathname:.> and #<Pathname:..> and
|
||||
* want directory, consider Pathname#children.
|
||||
*
|
||||
* pp Pathname.new('/usr/local').entries
|
||||
* #=> [#<Pathname:share>,
|
||||
* # #<Pathname:lib>,
|
||||
* # #<Pathname:..>,
|
||||
* # #<Pathname:include>,
|
||||
* # #<Pathname:etc>,
|
||||
* # #<Pathname:bin>,
|
||||
* # #<Pathname:man>,
|
||||
* # #<Pathname:games>,
|
||||
* # #<Pathname:.>,
|
||||
* # #<Pathname:sbin>,
|
||||
* # #<Pathname:src>]
|
||||
*
|
||||
*/
|
||||
static VALUE
|
||||
path_entries(VALUE self)
|
||||
|
|
Loading…
Reference in a new issue