Fix missing \A
This commit is contained in:
parent
bef5829482
commit
c8a891d1aa
@ -44,7 +44,7 @@ class Delegator < BasicObject
|
|||||||
undef_method m
|
undef_method m
|
||||||
end
|
end
|
||||||
private_instance_methods.each do |m|
|
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
|
next
|
||||||
end
|
end
|
||||||
undef_method m
|
undef_method m
|
||||||
|
Loading…
x
Reference in New Issue
Block a user