diff options
author | Semyon Pupkov <mail@semyonpupkov.com> | 2017-11-13 14:48:29 +0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-04 09:19:30 +0900 |
commit | 4173258fd0413c49ef07d54bc9654bba7e497e89 (patch) | |
tree | 74f0024198404b5b455eaed5b0c39d5a9076e468 /lib/cgi/html.rb | |
parent | 8e7df4bbf991b9d605784225db0750bbfe681f23 (diff) | |
download | ruby-4173258fd0413c49ef07d54bc9654bba7e497e89.tar.gz |
change call CGI methods from :: to .
Closes: https://github.com/ruby/ruby/pull/1749
Diffstat (limited to 'lib/cgi/html.rb')
-rw-r--r-- | lib/cgi/html.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb index 02d847ebd3..1543943320 100644 --- a/lib/cgi/html.rb +++ b/lib/cgi/html.rb @@ -30,10 +30,10 @@ class CGI attributes.each do|name, value| next unless value s << " " - s << CGI::escapeHTML(name.to_s) + s << CGI.escapeHTML(name.to_s) if value != true s << '="' - s << CGI::escapeHTML(value.to_s) + s << CGI.escapeHTML(value.to_s) s << '"' end end @@ -423,7 +423,7 @@ class CGI buf << super(attributes) if pretty - CGI::pretty(buf, pretty) + CGI.pretty(buf, pretty) else buf end |