summaryrefslogtreecommitdiff
path: root/lib/cgi/core.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgi/core.rb')
-rw-r--r--lib/cgi/core.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb
index 4a271d2ba74..a756ab55427 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.