diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-21 17:06:23 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-21 17:06:23 +0000 |
commit | 3095f4ecc67e041533a08d286f110b99fde814ce (patch) | |
tree | e3da23137b14847476106e8d696b62721c8bed01 | |
parent | a238423873f938b68337ac360656688a877fb081 (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
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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: |