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

ruby-changes:27582

From: zzak <ko1@a...>
Date: Fri, 8 Mar 2013 13:21:55 +0900 (JST)
Subject: [ruby-changes:27582] zzak:r39634 (trunk): * ext/pathname/pathname.c (path_f_pathname): rdoc for Pathname()

zzak	2013-03-08 13:21:43 +0900 (Fri, 08 Mar 2013)

  New Revision: 39634

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

  Log:
    * ext/pathname/pathname.c (path_f_pathname): rdoc for Pathname()

  Modified files:
    trunk/ChangeLog
    trunk/ext/pathname/pathname.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39633)
+++ ChangeLog	(revision 39634)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Mar  8 13:20:00 2013  Zachary Scott  <zachary@z...>
+
+	* ext/pathname/pathname.c (path_f_pathname): rdoc for Pathname()
+
 Fri Mar  8 12:00:00 2013  Zachary Scott  <zachary@z...>
 
 	* man/rake.1: Document ENVIRONMENT variables on RAKE(1) manpage
Index: ext/pathname/pathname.c
===================================================================
--- ext/pathname/pathname.c	(revision 39633)
+++ ext/pathname/pathname.c	(revision 39634)
@@ -1107,7 +1107,20 @@ path_unlink(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/pathname/pathname.c#L1107
 }
 
 /*
- * Creates a new Pathname object.
+ * :call-seq:
+ *  Pathname(path)  -> pathname
+ *
+ * Creates a new Pathname object from the given string, +path+, and returns
+ * pathname object.
+ *
+ * In order to use this constuctor, you must first require the Pathname
+ * standard library extension.
+ *
+ *	require 'pathname'
+ *	Pathname("/home/zzak")
+ *	#=> #<Pathname:/home/zzak>
+ *
+ * See also Pathname::new for more information.
  */
 static VALUE
 path_f_pathname(VALUE self, VALUE str)

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

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