diff options
author | wakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-27 18:12:36 +0000 |
---|---|---|
committer | wakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-27 18:12:36 +0000 |
commit | 025723b978290e57825df9b981ef4f05650b8178 (patch) | |
tree | a5a1fbe9406eb8ce1e093978ddef0582e612dbcf /lib/cgi.rb | |
parent | 96d8d4862fe405975cb388ddf4e9149d5d7fc647 (diff) |
* lib/cgi.rb (CGI#[]): improvement. thanks to Kazuhiro NISHIYAMA
<[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r-- | lib/cgi.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index fbb9a346c2..bf7aa85f59 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -943,6 +943,9 @@ convert string charset, and set language to "ja". def [](key) value = @params[key][0] + def value.to_ary + [self.dup] + end def value.[](key) $stderr.puts <<END CAUTION! cgi['key'] == cgi.params['key'][0] If want Array, use cgi.params['key'] |