From 34276148c4450faa77bb298cfbe005f7c263f802 Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 18 May 2011 21:07:13 +0000 Subject: * lib/cgi/util.rb: Improve documentation. Patch by Clinton Nixon. [Ruby 1.9 - Bug #4733] * lib/cgi/core.rb: ditto * lib/cgi/cookie.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi/core.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/cgi/core.rb') diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index 4a271d2ba7..a756ab5542 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -46,14 +46,17 @@ class CGI # :startdoc: + # Synonym for ENV. def env_table ENV end + # Synonym for $stdin. def stdinput $stdin end + # Synonym for $stdout. def stdoutput $stdout end @@ -705,14 +708,17 @@ class CGI @@accept_charset="UTF-8" + # Return the accept character set for all new CGI instances. def self.accept_charset @@accept_charset end + # Set the accept character set for all new CGI instances. def self.accept_charset=(accept_charset) @@accept_charset=accept_charset end + # Return the accept character set for this CGI instance. attr_reader :accept_charset # Create a new CGI instance. -- cgit v1.2.3