ruby-changes:50406
From: nobu <ko1@a...>
Date: Thu, 22 Feb 2018 13:13:08 +0900 (JST)
Subject: [ruby-changes:50406] nobu:r62522 (trunk): NEWS: adjust layout [ci skip]
nobu 2018-02-22 13:13:02 +0900 (Thu, 22 Feb 2018) New Revision: 62522 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62522 Log: NEWS: adjust layout [ci skip] Modified files: trunk/NEWS Index: NEWS =================================================================== --- NEWS (revision 62521) +++ NEWS (revision 62522) @@ -22,18 +22,29 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L22 * 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/