diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-27 08:37:48 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-27 08:37:48 +0000 |
commit | 02a8f15c9bc59946222a83de211a8daf373d928f (patch) | |
tree | 0135b4df6ec987ce3048996fbb2ec76ed757e508 | |
parent | 9856258cd0aa8b74d77a86a22d36f2bc328cf151 (diff) |
* lib/cgi.rb (CGI::TagMaker::nOE_element_def): replace to_s by
join. some other methods as well. [ruby-dev:29613]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/cgi.rb | 10 |
2 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,8 @@ +Wed Sep 27 13:29:01 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/cgi.rb (CGI::TagMaker::nOE_element_def): replace to_s by + join. some other methods as well. [ruby-dev:29613] + Wed Sep 27 01:04:49 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/mkmf.rb (try_func): check function pointer first and macro next. diff --git a/lib/cgi.rb b/lib/cgi.rb index a10e46eaac..8fc7061eca 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1306,7 +1306,7 @@ class CGI else '="' + CGI::escapeHTML(value) + '"' end - }.to_s + ">" + }.join + ">" END s.sub!(/\Z/, " +") << append if append s @@ -1529,7 +1529,7 @@ class CGI value[value.size - 1] end end - }.to_s + }.join end @@ -1609,7 +1609,7 @@ class CGI if @output_hidden body += @output_hidden.collect{|k,v| "<INPUT TYPE=\"HIDDEN\" NAME=\"#{k}\" VALUE=\"#{v}\">" - }.to_s + }.join end super(attributes){body} end @@ -1907,7 +1907,7 @@ class CGI } end end - }.to_s + }.join } end @@ -1984,7 +1984,7 @@ class CGI value[value.size - 1] end end - }.to_s + }.join end # Generate a reset button Input element, as a String. |