summaryrefslogtreecommitdiff
path: root/lib/cgi/html.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgi/html.rb')
-rw-r--r--lib/cgi/html.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb
index 4b9e577..02d847e 100644
--- a/lib/cgi/html.rb
+++ b/lib/cgi/html.rb
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
class CGI
# Base module for HTML-generation mixins.
#
@@ -26,7 +26,7 @@ class CGI
# - O EMPTY
def nOE_element(element, attributes = {})
attributes={attributes=>nil} if attributes.kind_of?(String)
- s = "<#{element.upcase}"
+ s = "<#{element.upcase}".dup
attributes.each do|name, value|
next unless value
s << " "
@@ -408,7 +408,7 @@ class CGI
end
pretty = attributes.delete("PRETTY")
pretty = " " if true == pretty
- buf = ""
+ buf = "".dup
if attributes.has_key?("DOCTYPE")
if attributes["DOCTYPE"]