summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-03 01:37:50 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-03 01:37:50 +0000
commit805b08f2925f5ceec67bf472e76e869bbddc8c39 (patch)
tree95071dbe2bf00ba5d91d7c0e3c0c137ec9d32265 /NEWS
parentd2fd7f32c8f4b134dc6716903be3be0f6c67760b (diff)
* 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--NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 7afd422ced..2f7f5d98ad 100644
--- a/NEWS
+++ b/NEWS
@@ -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