diff options
-rw-r--r-- | NEWS | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -22,18 +22,29 @@ with all sufficient information, see the ChangeLog file or Redmine * 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`. + * New methods: + + * 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: - * added Dir#each_child and Dir#children instance methods. [Feature #13969] + * added Dir#each_child and Dir#children instance methods. + [Feature #13969] * Kernel - * Kernel.#system takes :exception option to raise an exception on failure. [Feature #14386] + * Kernel.#system takes :exception option to raise an exception on + failure. [Feature #14386] * KeyError |