diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-19 08:48:03 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-19 08:48:03 +0000 |
| commit | 325e2525e0b45711e51edc5ae17049f383b6c976 (patch) | |
| tree | ecced3981a36049964ca5a1fca011b012e1e9bc6 /lib/optparse.rb | |
| parent | d2540ac9380aabb6dd7112a4b6e3b0e5f95e3706 (diff) | |
| download | ruby-325e2525e0b45711e51edc5ae17049f383b6c976.tar.gz ruby-325e2525e0b45711e51edc5ae17049f383b6c976.tar.xz ruby-325e2525e0b45711e51edc5ae17049f383b6c976.zip | |
* lib/optparse.rb: fix to override conv proc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse.rb')
| -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 fd0ca70d5..180848733 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1089,7 +1089,7 @@ class OptionParser when CompletingHash when nil pattern = CompletingHash.new - conv ||= pattern.method(:convert).to_proc if pattern.respond_to?(:convert) + conv = pattern.method(:convert).to_proc if pattern.respond_to?(:convert) else raise ArgumentError, "argument pattern given twice" end |
