зеркало из https://github.com/github/ruby.git
NEWS: adjust layout [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a1fb880f17
Коммит
5fe33f07d4
19
NEWS
19
NEWS
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче