From e60f744e9a574630ebe1c14d023dc3d75ac6ae2b Mon Sep 17 00:00:00 2001 From: drbrain Date: Mon, 16 May 2011 21:21:35 +0000 Subject: * lib/cgi.rb: Add toplevel documentation to class CGI * lib/cgi/session.rb: Add overview documentation to CGI::Cookie * lib/cgi/html.rb: Don't add CGI::TagMaker documentation to CGI. Patch by David Copeland. [Ruby 1.9 - Bug #4704] * lib/cgi/core.rb: Clean up CGI documentation. Patch by David Copeland. [Ruby 1.9 - Bug #4704] * lib/cgi/cookie.rb: Clean up CGI::Cookie documentation. Patch by David Copeland. [Ruby 1.9 - Bug #4704] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi.rb | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'lib/cgi.rb') diff --git a/lib/cgi.rb b/lib/cgi.rb index 3af271523b..31730bd60c 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -9,31 +9,25 @@ # # Documentation: Wakou Aoyama (RDoc'd and embellished by William Webber) # + +raise "Please, use ruby 1.9.0 or later." if RUBY_VERSION < "1.9.0" + # == Overview # -# The Common Gateway Interface (CGI) is a simple protocol -# for passing an HTTP request from a web server to a -# standalone program, and returning the output to the web -# browser. Basically, a CGI program is called with the -# parameters of the request passed in either in the -# environment (GET) or via $stdin (POST), and everything -# it prints to $stdout is returned to the client. +# The Common Gateway Interface (CGI) is a simple protocol for passing an HTTP +# request from a web server to a standalone program, and returning the output +# to the web browser. Basically, a CGI program is called with the parameters +# of the request passed in either in the environment (GET) or via $stdin +# (POST), and everything it prints to $stdout is returned to the client. # -# This file holds the +CGI+ class. This class provides -# functionality for retrieving HTTP request parameters, -# managing cookies, and generating HTML output. See the -# class documentation for more details and examples of use. +# This file holds the CGI class. This class provides functionality for +# retrieving HTTP request parameters, managing cookies, and generating HTML +# output. # -# The file cgi/session.rb provides session management -# functionality; see that file for more details. +# The file CGI::Session provides session management functionality; see that +# class for more details. # -# See http://www.w3.org/CGI/ for more information on the CGI -# protocol. - -raise "Please, use ruby 1.9.0 or later." if RUBY_VERSION < "1.9.0" - -# CGI class. See documentation for the file cgi.rb for an overview -# of the CGI protocol. +# See http://www.w3.org/CGI/ for more information on the CGI protocol. # # == Introduction # @@ -269,6 +263,10 @@ raise "Please, use ruby 1.9.0 or later." if RUBY_VERSION < "1.9.0" # CGI.new("html4Tr") # html4.01 Transitional # CGI.new("html4Fr") # html4.01 Frameset # + +class CGI +end + require 'cgi/core' require 'cgi/cookie' require 'cgi/util' -- cgit v1.2.3