Skip to content

Commit

Permalink
Separate send into public_send and __send__
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu authored and hsbt committed Dec 4, 2020
1 parent c497767 commit fae666b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/optparse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1749,7 +1749,7 @@ def self.getopts(*args)
#
def visit(id, *args, &block)
@stack.reverse_each do |el|
el.send(id, *args, &block)
el.__send__(id, *args, &block)
end
nil
end
Expand Down

0 comments on commit fae666b

Please sign in to comment.