mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a238423873
commit
3095f4ecc6
1 changed files with 5 additions and 0 deletions
5
NEWS
5
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:
|
||||
|
|
Loading…
Add table
Reference in a new issue