1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix missing \A

This commit is contained in:
Kazuhiro NISHIYAMA 2019-05-10 12:21:25 +09:00
parent bef5829482
commit c8a891d1aa
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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