Skip to content

Commit

Permalink
Fix missing \A
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed May 10, 2019
1 parent bef5829 commit c8a891d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delegate.rb
Expand Up @@ -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
Expand Down

0 comments on commit c8a891d

Please sign in to comment.