From c8a891d1aa2fd54172d313441811aef2838b7797 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Fri, 10 May 2019 12:21:25 +0900 Subject: [PATCH] Fix missing `\A` --- lib/delegate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/delegate.rb b/lib/delegate.rb index 37819a28f4..85c1eb4e4e 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -44,7 +44,7 @@ class Delegator < BasicObject 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