aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-08 04:21:43 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-08 04:21:43 +0000
commit7d183dab15665d34ad982348c3205c85b28017b5 (patch)
tree31afd844d7f4ab9a120b8d0b3a4858744e70ba31
parentdf9d847e0b6532e12ccc78e2d78d767b68364f66 (diff)
downloadruby-7d183dab15665d34ad982348c3205c85b28017b5.tar.gz
* 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
-rw-r--r--ChangeLog4
-rw-r--r--ext/pathname/pathname.c15
2 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b6d19aca61..c7b9f1a93d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)