зеркало из https://github.com/github/ruby.git
* lib/cgi.rb (CGI#[]): improvement. thanks to Kazuhiro NISHIYAMA
<zn@mbf.nifty.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
96d8d4862f
Коммит
025723b978
|
@ -1,3 +1,8 @@
|
|||
Sat Dec 28 03:09:58 2002 Wakou Aoyama <wakou@ruby-lang.org>
|
||||
|
||||
* lib/cgi.rb (CGI#[]): improvement. thanks to Kazuhiro NISHIYAMA
|
||||
<zn@mbf.nifty.com>
|
||||
|
||||
Sat Dec 28 00:34:03 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* {win32,bcc32}/Makefile.sub: remove `=' from --make-flags options.
|
||||
|
|
|
@ -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']
|
||||
|
|
Загрузка…
Ссылка в новой задаче