diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-22 17:42:06 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-22 17:42:06 +0000 |
commit | ed7d776317e35976daf9537d2609ca1c65366525 (patch) | |
tree | 317d874d43efeb922c467e41e9a6221630a85dc6 /lib/cgi | |
parent | 7bfb6b2bc763d85f571aa18e162116917453ab11 (diff) | |
download | ruby-ed7d776317e35976daf9537d2609ca1c65366525.tar.gz |
* lib/cgi/core.rb: Documentation for CGI#header alias
Based on a patch by Marcus Stollsteimer
[ruby-core:49585] [Bug #7405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi')
-rw-r--r-- | lib/cgi/core.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index 7044ffa6a0..27137a2032 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -171,6 +171,13 @@ class CGI return buf end end # http_header() + + # This method is an alias for #http_header, when HTML5 tag maker is inactive. + # + # NOTE: use #http_header to create HTTP header blocks, this alias is only + # provided for backwards compatibility. + # + # Using #header with the HTML5 tag maker will create a <header> element. alias :header :http_header def _header_for_string(content_type) #:nodoc: |