summaryrefslogtreecommitdiff
path: root/lib/cgi.rb
diff options
context:
space:
mode:
authorxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-30 06:58:15 +0000
committerxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-30 06:58:15 +0000
commitc394688567d461b3c96c333708cf37384cec3bdf (patch)
treeadc71bef2df78dfc5b51f0ebbcb2edaa806acd94 /lib/cgi.rb
parent184bfbba7fa80c4f8c624c14b364d63d7005f161 (diff)
* lib/cgi.rb: Add a document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r--lib/cgi.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 1c5ccd369f..9ecf734714 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -143,6 +143,11 @@ raise "Please, use ruby 1.9.0 or later." if RUBY_VERSION < "1.9.0"
# take particular attributes where the attributes can be directly specified
# as arguments, rather than via a hash.
#
+# === Utility HTML escape and other methods like a function.
+#
+# There are some utility tool defined in cgi/util.rb .
+# And when include, you can use utility methods like a function.
+#
# == Examples of use
#
# === Get form values
@@ -268,6 +273,20 @@ raise "Please, use ruby 1.9.0 or later." if RUBY_VERSION < "1.9.0"
# CGI.new("html4Fr") # html4.01 Frameset
# CGI.new("html5") # html5
#
+# === Some utility methods
+#
+# require 'cgi/util'
+# CGI.escapeHTML('Usage: foo "bar" <baz>')
+#
+#
+# === Some utility methods like a function
+#
+# require 'cgi/util'
+# include CGI::Util
+# escapeHTML('Usage: foo "bar" <baz>')
+# h('Usage: foo "bar" <baz>') # alias
+#
+#
class CGI
end