summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-21 17:06:23 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-21 17:06:23 +0000
commit3095f4ecc67e041533a08d286f110b99fde814ce (patch)
treee3da23137b14847476106e8d696b62721c8bed01 /NEWS
parenta238423873f938b68337ac360656688a877fb081 (diff)
* NEWS: add NEWS entry about Binding#source_location [Feature #14230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 8eb49f95e3..2467f59d46 100644
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,11 @@ with all sufficient information, see the ChangeLog file or Redmine
=== Core classes updates (outstanding ones only)
+* Binding
+
+ * added Binding#source_location. [Feature #14230]
+ This method returns the source location of binding, a 2-element array of `__FILE__` and `__LINE__`. Traditionally, the same information could be retrieved by `eval("[__FILE__, __LINE__]", binding)`, but we are planning to change this behavior so that `Kernel#eval` ignores binding's source location [Bug #4352]. So, users should use this newly-introduced method instead of `Kernel#eval`.
+
* Dir
* New methods: