mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Needs call-seq
directives [ci skip]
This commit is contained in:
parent
53e2bba0dd
commit
f3812e6ce6
1 changed files with 4 additions and 0 deletions
4
dir.rb
4
dir.rb
|
@ -81,6 +81,7 @@
|
|||
# - ::unlink (aliased as ::delete and ::rmdir):: Removes the given directory.
|
||||
# - #inspect:: Returns a string description of +self+.
|
||||
class Dir
|
||||
# call-seq:
|
||||
# Dir.open( string ) -> aDir
|
||||
# Dir.open( string, encoding: enc ) -> aDir
|
||||
# Dir.open( string ) {| aDir | block } -> anObject
|
||||
|
@ -106,6 +107,7 @@ class Dir
|
|||
end
|
||||
end
|
||||
|
||||
# call-seq:
|
||||
# Dir.new( string ) -> aDir
|
||||
# Dir.new( string, encoding: enc ) -> aDir
|
||||
#
|
||||
|
@ -117,6 +119,7 @@ class Dir
|
|||
Primitive.dir_initialize(name, encoding)
|
||||
end
|
||||
|
||||
# call-seq:
|
||||
# Dir[ string [, string ...] [, base: path] [, sort: true] ] -> array
|
||||
#
|
||||
# Equivalent to calling
|
||||
|
@ -125,6 +128,7 @@ class Dir
|
|||
Primitive.dir_s_aref(args, base, sort)
|
||||
end
|
||||
|
||||
# call-seq:
|
||||
# Dir.glob( pattern, [flags], [base: path] [, sort: true] ) -> array
|
||||
# Dir.glob( pattern, [flags], [base: path] [, sort: true] ) { |filename| block } -> nil
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue