summaryrefslogtreecommitdiffstats
path: root/lib/cgi
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-16 17:47:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-16 17:47:19 +0000
commit9246a73c21dab6031e8036b3ebaa3b943d2119d1 (patch)
treea700e3fe92165180b04451746f9c4fda4f038289 /lib/cgi
parentd9a34753f78b8db5115b10bb1df137a16c4c90cf (diff)
downloadruby-9246a73c21dab6031e8036b3ebaa3b943d2119d1.tar.gz
ruby-9246a73c21dab6031e8036b3ebaa3b943d2119d1.tar.xz
ruby-9246a73c21dab6031e8036b3ebaa3b943d2119d1.zip
consistent parentheses in assignment RHS.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi')
-rw-r--r--lib/cgi/session/pstore.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cgi/session/pstore.rb b/lib/cgi/session/pstore.rb
index eea06c2ce..8f4beb978 100644
--- a/lib/cgi/session/pstore.rb
+++ b/lib/cgi/session/pstore.rb
@@ -69,7 +69,7 @@ class CGI
unless File::exist? path
@hash = {}
end
- @p = ::PStore.new path
+ @p = ::PStore.new(path)
end
# Restore session state from the session's PStore file.
@@ -114,7 +114,7 @@ if $0 == __FILE__
# :enddoc:
STDIN.reopen("/dev/null")
cgi = CGI.new
- session = CGI::Session.new cgi, 'database_manager' => CGI::Session::PStore
+ session = CGI::Session.new(cgi, 'database_manager' => CGI::Session::PStore)
session['key'] = {'k' => 'v'}
puts session['key'].class
fail unless Hash === session['key']