aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cgi.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-20 17:36:36 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-20 17:36:36 +0000
commitc09cea5e1ba4e6d103fad9e6c6cbf29560abf78b (patch)
treef23af24cc3d193da3cc59197e065e2b986e8bb5d /lib/cgi.rb
parentb5d9cbe8e8bb5c0eb826ce68a81aa5579359b5e8 (diff)
downloadruby-c09cea5e1ba4e6d103fad9e6c6cbf29560abf78b.tar.gz
* object.c (rb_mod_attr): make Module#attr to be an alias to
attr_reader. [RCR#331] * ruby.h: export classes/modules to implement sandbox. [ruby-core:08283] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r--lib/cgi.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 825be5a0a8..04f0b5e7ce 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -964,11 +964,11 @@ class CGI
end
# Get the cookies as a hash of cookie-name=>Cookie pairs.
- attr_accessor("cookies")
+ attr_accessor :cookies
# Get the parameters as a hash of name=>values pairs, where
# values is an Array.
- attr("params")
+ attr_reader :params
# Set all the parameters.
def params=(hash)