зеркало из https://github.com/github/ruby.git
FrozenError.new accepts :receiver instead of 2nd argument [ci skip]
[ruby-core:96227] [Feature #16419]
This commit is contained in:
Родитель
3142a6beb2
Коммит
92d0958257
4
NEWS
4
NEWS
|
@ -319,8 +319,8 @@ FrozenError::
|
|||
|
||||
* Added FrozenError#receiver to return the frozen object that
|
||||
modification was attempted on. To set this object when raising
|
||||
FrozenError in Ruby code, pass it as the second argument to
|
||||
FrozenError.new. [Feature #15751]
|
||||
FrozenError in Ruby code, FrozenError.new accepts a +:receiver+
|
||||
option. [Feature #15751]
|
||||
|
||||
GC::
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче