summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-27 08:37:48 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-27 08:37:48 +0000
commit02a8f15c9bc59946222a83de211a8daf373d928f (patch)
tree0135b4df6ec987ce3048996fbb2ec76ed757e508 /lib
parent9856258cd0aa8b74d77a86a22d36f2bc328cf151 (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
Diffstat (limited to 'lib')
-rw-r--r--lib/cgi.rb10
1 files changed, 5 insertions, 5 deletions
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.