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

ruby-changes:34895

From: zzak <ko1@a...>
Date: Mon, 28 Jul 2014 05:25:19 +0900 (JST)
Subject: [ruby-changes:34895] zzak:r46978 (trunk): * file.c: [DOC] Clarify how File.file? handles symbolic links. Also

zzak	2014-07-28 05:23:45 +0900 (Mon, 28 Jul 2014)

  New Revision: 46978

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46978

  Log:
    * file.c: [DOC] Clarify how File.file? handles symbolic links. Also
      cleaned up the rdoc style for this method, more to follow.
      Originally reported by Michael Renner [Bug #10067]

  Modified files:
    trunk/ChangeLog
    trunk/file.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46977)
+++ ChangeLog	(revision 46978)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Jul 28 05:21:41 2014  Zachary Scott  <e@z...>
+
+	* file.c: [DOC] Clarify how File.file? handles symbolic links. Also
+	  cleaned up the rdoc style for this method, more to follow.
+	  Originally reported by Michael Renner [Bug #10067]
+
 Mon Jul 28 05:12:22 2014  Zachary Scott  <e@z...>
 
 	* time.c: [DOC] Remove dead link and old bug report, which hasn't been
Index: file.c
===================================================================
--- file.c	(revision 46977)
+++ file.c	(revision 46978)
@@ -1645,12 +1645,14 @@ rb_file_executable_real_p(VALUE obj, VAL https://github.com/ruby/ruby/blob/trunk/file.c#L1645
 
 /*
  * call-seq:
- *    File.file?(file_name)   -> true or false
+ *    File.file?(file) -> true or false
  *
- * Returns <code>true</code> if the named file exists and is a
- * regular file.
+ * Returns +true+ if the named +file+ exists and is a regular file.
  *
- * _file_name_ can be an IO object.
+ * +file+ can be an IO object.
+ *
+ * If the +file+ argument is a symbolic link, it will resolve the symbolic link
+ * and use the file referenced by the link.
  */
 
 static VALUE

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

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