diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-10 01:20:24 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-10 01:20:24 +0000 |
| commit | bcdcc6099a682f5a558d493a5a91c48c694070f0 (patch) | |
| tree | e35b79c392e64df3d524054b0db4be39bf04dbbd /lib/getoptlong.rb | |
| parent | 68043e4379705b4e6f9a93bcba046ece61bfc73a (diff) | |
| download | ruby-bcdcc6099a682f5a558d493a5a91c48c694070f0.tar.gz ruby-bcdcc6099a682f5a558d493a5a91c48c694070f0.tar.xz ruby-bcdcc6099a682f5a558d493a5a91c48c694070f0.zip | |
* lib/getoptlong.rb (GetoptLong#set_options): recieve arguments
as Array.
* lib/irb/slex.rb: use Proc#yield.
* lib/rdoc/markup/simple_markup/inline.rb: follow the new behavior
of String#[].
* lib/rdoc/ri/ri_write.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/getoptlong.rb')
| -rw-r--r-- | lib/getoptlong.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb index 922d25371..880883a98 100644 --- a/lib/getoptlong.rb +++ b/lib/getoptlong.rb @@ -289,14 +289,7 @@ class GetoptLong @canonical_names.clear @argument_flags.clear - arguments.each do |arg| - # - # Each argument must be an Array. - # - if !arg.is_a?(Array) - raise ArgumentError, "the option list contains non-Array argument" - end - + arguments.each do |*arg| # # Find an argument flag and it set to `argument_flag'. # |
