[前][次][番号順一覧][スレッド一覧]

ruby-changes:59399

From: Kazuhiro <ko1@a...>
Date: Mon, 23 Dec 2019 13:24:20 +0900 (JST)
Subject: [ruby-changes:59399] 92d0958257 (master): FrozenError.new accepts :receiver instead of 2nd argument [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=92d0958257

From 92d0958257965adf426e6f6c654c5935a690bf5b Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Mon, 23 Dec 2019 13:23:08 +0900
Subject: FrozenError.new accepts :receiver instead of 2nd argument [ci skip]

[ruby-core:96227] [Feature #16419]

diff --git a/NEWS b/NEWS
index cbd162b..53f9109 100644
--- a/NEWS
+++ b/NEWS
@@ -319,8 +319,8 @@ FrozenError:: https://github.com/ruby/ruby/blob/trunk/NEWS#L319
 
     * 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::
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]