From 7d183dab15665d34ad982348c3205c85b28017b5 Mon Sep 17 00:00:00 2001 From: zzak Date: Fri, 8 Mar 2013 04:21:43 +0000 Subject: * ext/pathname/pathname.c (path_f_pathname): rdoc for Pathname() git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/pathname/pathname.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index 2bb6ce2f3c..fa67226e84 100644 --- a/ext/pathname/pathname.c +++ b/ext/pathname/pathname.c @@ -1107,7 +1107,20 @@ path_unlink(VALUE self) } /* - * 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") + * #=> # + * + * See also Pathname::new for more information. */ static VALUE path_f_pathname(VALUE self, VALUE str) -- cgit v1.2.3