diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-14 06:52:41 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-14 06:52:41 +0000 |
commit | b3a4461df2c78b4828cf344789b80e3c3ebedd14 (patch) | |
tree | 6d1016d68392f7efa9f1bb98794e4a3e7fe879b8 /lib | |
parent | 9933a6019f8e867a546723e983e0a50593d35cbd (diff) | |
download | ruby-b3a4461df2c78b4828cf344789b80e3c3ebedd14.tar.gz |
Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cgi/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index 5b01866e8e..e077c6d523 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -788,7 +788,7 @@ class CGI # cookies and other parameters are parsed automatically from the standard # CGI locations, which varies according to the REQUEST_METHOD. def initialize(options = {}, &block) # :yields: name, value - @accept_charset_error_block=block if block_given? + @accept_charset_error_block = block_given? ? block : nil @options={:accept_charset=>@@accept_charset} case options when Hash |