From 525336fcc97a0c0fc8dae2e6f9fe63dfc6e645ab Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 29 Oct 2003 17:47:24 +0000 Subject: * eval.c (proc_invoke): single array value to normal Proc#call (i.e. not via lambda call), should be treated just like yield. [ruby-dev:21726] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/cgi.rb') diff --git a/lib/cgi.rb b/lib/cgi.rb index a6003d99a6..43a5aa89f0 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1152,11 +1152,9 @@ class CGI end alias last first def to_a - @params - end - def to_ary # to be rhs of multiple assignment - @params + @params || [self] end + alias to_ary to_a # to be rhs of multiple assignment end # Get the value for the parameter with a given key. -- cgit v1.2.3