mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* lib/optparse.rb: fix to override conv proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cc1757bce8
commit
dc8147bca9
2 changed files with 5 additions and 1 deletions
|
@ -1076,7 +1076,7 @@ class OptionParser
|
|||
# directly specified pattern(any object possible to match)
|
||||
if !(String === o) and o.respond_to?(:match)
|
||||
pattern = notwice(o, pattern, 'pattern')
|
||||
conv ||= pattern.method(:convert).to_proc if pattern.respond_to?(:convert)
|
||||
conv = pattern.method(:convert).to_proc if pattern.respond_to?(:convert)
|
||||
next
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue