From 892e8efd47343925b76cd12da965109f084a1817 Mon Sep 17 00:00:00 2001 From: nari Date: Thu, 24 Jan 2013 05:35:05 +0000 Subject: [PATCH] fix documents. __dir__ is a shorthand File.realdirpath(__FILE__). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 3 +-- eval.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 4994614448..5b4dde3c5d 100644 --- a/NEWS +++ b/NEWS @@ -74,8 +74,7 @@ with all sufficient information, see the ChangeLog file. * Kernel * added method: * added Kernel#Hash conversion method like Array() or Float(). - * added Kernel#__dir__ which returns the absolute path of the - directory of the file from which this method is called. + * added Kernel#__dir__, a shorthand for File.realdirpath(__FILE__). * added Kernel#caller_locations which returns an array of frame information objects. * extended method: diff --git a/eval.c b/eval.c index c4bda48524..622bfedf76 100644 --- a/eval.c +++ b/eval.c @@ -1508,7 +1508,7 @@ rb_f_callee_name(void) * Returns the canonicalized absolute path of the directory of the file from * which this method is called. It means symlinks in the path is resolved. * If __FILE__ is nil, it returns nil. - * The return value equals to File.dirname(File.realpath(__FILE__)). + * The return value equals to File.realdirpath(__FILE__). * */ static VALUE