diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-18 21:07:13 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-18 21:07:13 +0000 |
commit | 34276148c4450faa77bb298cfbe005f7c263f802 (patch) | |
tree | 0eb6c327c7c6e98a36a62105929b63a37bd4f7ab | |
parent | ebce1b4bd61c39030d93c01e7d080b8500be17ff (diff) |
* 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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/cgi/cookie.rb | 2 | ||||
-rw-r--r-- | lib/cgi/core.rb | 6 | ||||
-rw-r--r-- | lib/cgi/util.rb | 8 |
4 files changed, 23 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Thu May 19 06:06:07 2011 Eric Hodel <[email protected]> + + * 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 + Thu May 19 06:02:21 2011 Eric Hodel <[email protected]> * lib/tempfile.rb: Document Dir.mkdir and Dir.rmdir. Patch by Clinton diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb index f05f83e0c9..c2526931d5 100644 --- a/lib/cgi/cookie.rb +++ b/lib/cgi/cookie.rb @@ -104,10 +104,12 @@ class CGI # True if this cookie is secure; false otherwise attr_reader("secure") + # Returns the value or list of values for this cookie. def value self end + # Replaces the value of this cookie with a new value or list of values. def value=(val) replace(Array(val)) end 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. diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb index 9f8a63ac92..e611cbedb2 100644 --- a/lib/cgi/util.rb +++ b/lib/cgi/util.rb @@ -83,9 +83,13 @@ class CGI end end end + + # Synonym for CGI.escapeHTML. def CGI::escape_html(str) escapeHTML(str) end + + # Synonym for CGI.unescapeHTML. def CGI::unescape_html(str) unescapeHTML(str) end @@ -134,9 +138,13 @@ class CGI string end end + + # Synonym for CGI.escapeElement. def CGI::escape_element(str) escapeElement(str) end + + # Synonym for CGI.unescapeElement. def CGI::unescape_element(str) unescapeElement(str) end |