summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-24 03:03:49 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-24 03:03:49 +0000
commit2ad0113746def243f84283bc4b7a4a24443a3946 (patch)
treeb4cc14ba12cea696a70f4943704554e0f6c2fbc4 /eval.c
parent8ad15646889383f5546922bc5bb6f3f5a7391dfa (diff)
fix rdoc of __dir__ [Bug #7729]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 13602bc663..59887bc76a 100644
--- a/eval.c
+++ b/eval.c
@@ -1505,9 +1505,10 @@ rb_f_callee_name(void)
* call-seq:
* __dir__ -> string
*
- * Returns the value of <code>File.dirname(__FILE__)</code>
+ * Returns the absolute path of the directory of the file from which this
+ * method is called.
* If <code>__FILE__</code> is <code>nil</code>, it returns <code>nil</code>.
- * And it returns always an absolute path.
+ * The return value equals to <code>File.dirname(File.expand_path(__FILE__))</code>.
*
*/
static VALUE