Skip to content

Commit fae666b

Browse files
nobuhsbt
authored andcommitted
Separate send into public_send and __send__
1 parent c497767 commit fae666b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/optparse.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1749,7 +1749,7 @@ def self.getopts(*args)
17491749
#
17501750
def visit(id, *args, &block)
17511751
@stack.reverse_each do |el|
1752-
el.send(id, *args, &block)
1752+
el.__send__(id, *args, &block)
17531753
end
17541754
nil
17551755
end

0 commit comments

Comments
 (0)