diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/pathname/pathname.c | 15 |
2 files changed, 18 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Mar 8 13:20:00 2013 Zachary Scott <zachary@zacharyscott.net> + + * ext/pathname/pathname.c (path_f_pathname): rdoc for Pathname() + Fri Mar 8 12:00:00 2013 Zachary Scott <zachary@zacharyscott.net> * man/rake.1: Document ENVIRONMENT variables on RAKE(1) manpage 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") + * #=> #<Pathname:/home/zzak> + * + * See also Pathname::new for more information. */ static VALUE path_f_pathname(VALUE self, VALUE str) |