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

ruby-changes:58213

From: Kazuhiro <ko1@a...>
Date: Fri, 11 Oct 2019 13:51:33 +0900 (JST)
Subject: [ruby-changes:58213] d6c80876b7 (master): Use `bind_call` instead of `bind` and `call`

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

From d6c80876b7aae5b3f44abe7cf1b64161354b8ebd Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Fri, 11 Oct 2019 13:50:27 +0900
Subject: Use `bind_call` instead of `bind` and `call`


diff --git a/lib/uri/rfc2396_parser.rb b/lib/uri/rfc2396_parser.rb
index 843fe12..556da20a 100644
--- a/lib/uri/rfc2396_parser.rb
+++ b/lib/uri/rfc2396_parser.rb
@@ -336,7 +336,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/rfc2396_parser.rb#L336
 
     @@to_s = Kernel.instance_method(:to_s)
     def inspect
-      @@to_s.bind(self).call
+      @@to_s.bind_call(self)
     end
 
     private
diff --git a/lib/uri/rfc3986_parser.rb b/lib/uri/rfc3986_parser.rb
index 135e847..08539f0 100644
--- a/lib/uri/rfc3986_parser.rb
+++ b/lib/uri/rfc3986_parser.rb
@@ -91,7 +91,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/rfc3986_parser.rb#L91
 
     @@to_s = Kernel.instance_method(:to_s)
     def inspect
-      @@to_s.bind(self).call
+      @@to_s.bind_call(self)
     end
 
     private
-- 
cgit v0.10.2


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

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