[前][次][番号順一覧][スレッド一覧]

ruby-changes:69597

From: Nobuyoshi <ko1@a...>
Date: Fri, 5 Nov 2021 09:59:21 +0900 (JST)
Subject: [ruby-changes:69597] f3812e6ce6 (master): [DOC] Needs `call-seq` directives [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=f3812e6ce6

From f3812e6ce61a8a84aee12aec00e879780a8470eb Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 5 Nov 2021 09:33:05 +0900
Subject: [DOC] Needs `call-seq` directives [ci skip]

---
 dir.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dir.rb b/dir.rb
index d9a7f5fa8b6..bf6556db96c 100644
--- a/dir.rb
+++ b/dir.rb
@@ -81,6 +81,7 @@ https://github.com/ruby/ruby/blob/trunk/dir.rb#L81
 # - ::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 https://github.com/ruby/ruby/blob/trunk/dir.rb#L107
     end
   end
 
+  # call-seq:
   #    Dir.new( string ) -> aDir
   #    Dir.new( string, encoding: enc ) -> aDir
   #
@@ -117,6 +119,7 @@ class Dir https://github.com/ruby/ruby/blob/trunk/dir.rb#L119
     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 https://github.com/ruby/ruby/blob/trunk/dir.rb#L128
     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
   #
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]