From ded754f33d89a0ae2f5fdbc567ea18639e28eb33 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 24 Jan 2013 04:20:33 +0000 Subject: [PATCH] Refix of r38916: it uses realpath git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eval.c b/eval.c index 59887bc76a..c4bda48524 100644 --- a/eval.c +++ b/eval.c @@ -1505,10 +1505,10 @@ rb_f_callee_name(void) * call-seq: * __dir__ -> string * - * Returns the absolute path of the directory of the file from which this - * method is called. + * 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.expand_path(__FILE__)). + * The return value equals to File.dirname(File.realpath(__FILE__)). * */ static VALUE