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

ruby-changes:55696

From: Kazuhiro <ko1@a...>
Date: Fri, 10 May 2019 12:22:15 +0900 (JST)
Subject: [ruby-changes:55696] Kazuhiro NISHIYAMA: c8a891d1aa (trunk): Fix missing `\A`

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

From c8a891d1aa2fd54172d313441811aef2838b7797 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Fri, 10 May 2019 12:21:25 +0900
Subject: Fix missing `\A`


diff --git a/lib/delegate.rb b/lib/delegate.rb
index 37819a2..85c1eb4 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -44,7 +44,7 @@ class Delegator < BasicObject https://github.com/ruby/ruby/blob/trunk/lib/delegate.rb#L44
       undef_method m
     end
     private_instance_methods.each do |m|
-      if /\Ablock_given\?\z|iterator\?\z|\A__.*__\z/ =~ m
+      if /\Ablock_given\?\z|\Aiterator\?\z|\A__.*__\z/ =~ m
         next
       end
       undef_method m
-- 
cgit v0.10.2


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

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