mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
{lib,test}/cgi: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3203ae53ff
commit
fbd5cda6aa
15 changed files with 59 additions and 59 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue