diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-20 03:26:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-20 03:26:19 +0000 |
commit | 30bf480a3c56bde8829ea5a73ae351fded3ba1fe (patch) | |
tree | 63768920faf5bbcc94862403db6f47118fca2cec /lib | |
parent | 9de2a060ea98cbd7d7b235fac0707ee81e351a45 (diff) | |
download | ruby-30bf480a3c56bde8829ea5a73ae351fded3ba1fe.tar.gz ruby-30bf480a3c56bde8829ea5a73ae351fded3ba1fe.tar.xz ruby-30bf480a3c56bde8829ea5a73ae351fded3ba1fe.zip |
* lib/optparse.rb: fix to override conv proc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/optparse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 180848733..854805a82 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -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 |