* lib/optparse.rb (SPLAT_PROC): fix for regexp. [ruby-dev:37514]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-12-21 03:23:19 +00:00
parent f6d905c022
commit 3e23c0c8c1
4 changed files with 20 additions and 4 deletions

View file

@ -996,7 +996,7 @@ class OptionParser
end
private :notwice
SPLAT_PROC = proc {|*a| a}
SPLAT_PROC = proc {|*a| next *a}
#
# Creates an OptionParser::Switch from the parameters. The parsed argument
# value is passed to the given block, where it can be processed.