diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -74,7 +74,8 @@ with all sufficient information, see the ChangeLog file. * Kernel * added method: * added Kernel#Hash conversion method like Array() or Float(). - * added Kernel#__dir__, a shorthand for File.realdirpath(__FILE__). + * added Kernel#__dir__ which returns the absolute path of the + directory of the file from which this method is called. * added Kernel#caller_locations which returns an array of frame information objects. * extended method: @@ -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 <code>__FILE__</code> is <code>nil</code>, it returns <code>nil</code>. - * The return value equals to <code>File.realdirpath(__FILE__)</code>. + * The return value equals to <code>File.dirname(File.realpath(__FILE__))</code>. * */ static VALUE |