diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-24 04:20:33 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-24 04:20:33 +0000 |
commit | ded754f33d89a0ae2f5fdbc567ea18639e28eb33 (patch) | |
tree | 18dfe788e5f3f039addb28c6f083fe2bd44ae8b8 /eval.c | |
parent | b5c0c4ee08196e5f6d7767e49012a13d66965f57 (diff) |
Refix of r38916: it uses realpath
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 <code>__FILE__</code> is <code>nil</code>, it returns <code>nil</code>. - * The return value equals to <code>File.dirname(File.expand_path(__FILE__))</code>. + * The return value equals to <code>File.dirname(File.realpath(__FILE__))</code>. * */ static VALUE |