From ed7d776317e35976daf9537d2609ca1c65366525 Mon Sep 17 00:00:00 2001 From: zzak Date: Thu, 22 Nov 2012 17:42:06 +0000 Subject: * 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 --- lib/cgi/core.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/cgi') 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
element. alias :header :http_header def _header_for_string(content_type) #:nodoc: -- cgit v1.2.3