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
This commit is contained in:
parent
ded754f33d
commit
892e8efd47
3
NEWS
3
NEWS
@ -74,8 +74,7 @@ with all sufficient information, see the ChangeLog file.
|
|||||||
* Kernel
|
* Kernel
|
||||||
* added method:
|
* added method:
|
||||||
* added Kernel#Hash conversion method like Array() or Float().
|
* added Kernel#Hash conversion method like Array() or Float().
|
||||||
* added Kernel#__dir__ which returns the absolute path of the
|
* added Kernel#__dir__, a shorthand for File.realdirpath(__FILE__).
|
||||||
directory of the file from which this method is called.
|
|
||||||
* added Kernel#caller_locations which returns an array of
|
* added Kernel#caller_locations which returns an array of
|
||||||
frame information objects.
|
frame information objects.
|
||||||
* extended method:
|
* extended method:
|
||||||
|
2
eval.c
2
eval.c
@ -1508,7 +1508,7 @@ rb_f_callee_name(void)
|
|||||||
* Returns the canonicalized absolute path of the directory of the file from
|
* 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.
|
* 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>.
|
* If <code>__FILE__</code> is <code>nil</code>, it returns <code>nil</code>.
|
||||||
* The return value equals to <code>File.dirname(File.realpath(__FILE__))</code>.
|
* The return value equals to <code>File.realdirpath(__FILE__)</code>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user