diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-29 13:22:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-29 13:22:34 +0000 |
commit | 5d071fe3818f94b90559f2b5328c009553fc5a11 (patch) | |
tree | 582a209ae485c247ae2dd3d98a07ea6ad75f75d6 | |
parent | 9547194750c05890a46e6f94e9102614901dd773 (diff) | |
download | ruby-5d071fe3818f94b90559f2b5328c009553fc5a11.tar.gz |
cookie.rb: trailing comma
* lib/cgi/cookie.rb: add trailing comma for further lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/cgi/cookie.rb | 10 | ||||
-rw-r--r-- | test/cgi/test_cgi_cookie.rb | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb index 3ec884dffb..f74ba13764 100644 --- a/lib/cgi/cookie.rb +++ b/lib/cgi/cookie.rb @@ -11,11 +11,11 @@ class CGI # cookie1 = CGI::Cookie.new("name", "value1", "value2", ...) # cookie1 = CGI::Cookie.new("name" => "name", "value" => "value") # cookie1 = CGI::Cookie.new('name' => 'name', - # 'value' => ['value1', 'value2', ...], - # 'path' => 'path', # optional - # 'domain' => 'domain', # optional - # 'expires' => Time.now, # optional - # 'secure' => true # optional + # 'value' => ['value1', 'value2', ...], + # 'path' => 'path', # optional + # 'domain' => 'domain', # optional + # 'expires' => Time.now, # optional + # 'secure' => true, # optional # ) # # cgi.out("cookie" => [cookie1, cookie2]) { "string" } diff --git a/test/cgi/test_cgi_cookie.rb b/test/cgi/test_cgi_cookie.rb index eaf4ff1aa9..8f0fb70827 100644 --- a/test/cgi/test_cgi_cookie.rb +++ b/test/cgi/test_cgi_cookie.rb @@ -44,7 +44,7 @@ class CGICookieTest < Test::Unit::TestCase 'path'=>'/cgi-bin/myapp/', 'domain'=>'www.example.com', 'expires'=>t, - 'secure'=>true + 'secure'=>true, ) assert_equal('name1', cookie.name) assert_equal(value, cookie.value) |