diff options
author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-03 01:37:50 +0000 |
---|---|---|
committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-03 01:37:50 +0000 |
commit | 805b08f2925f5ceec67bf472e76e869bbddc8c39 (patch) | |
tree | 95071dbe2bf00ba5d91d7c0e3c0c137ec9d32265 /NEWS | |
parent | d2fd7f32c8f4b134dc6716903be3be0f6c67760b (diff) | |
download | ruby-805b08f2925f5ceec67bf472e76e869bbddc8c39.tar.gz |
* eval.c (f_current_dirname): add the new method for Kernel.
This method almotst same as File.dirname(__FILE__). One
different behavior is it returns nil when __FILE__ returns nil.
[Feature #3346]
* NEWS: ditto
* test/ruby/test_method.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -41,6 +41,7 @@ with all sufficient information, see the ChangeLog file. * added Kernel#Hash conversion method like Array() or Float(). * added Kernel#using, which imports refinements into the current scope. [experimental] + * added Kernel#__dir__ which returns a current dirname. * extended method: * Kernel#warn accepts multiple args in like puts. * Kernel#caller accepts second optional argument `n' which specify |