diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2022-02-20 20:45:53 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-02-22 17:08:52 +0900 |
commit | ae8a8b184e6d7400470669ed7557842902019d36 (patch) | |
tree | 29512791d28b3770d312eb46d89d18514a3f9e9b /lib/rdoc/context.rb | |
parent | a49aae2c5e3786e5ac9a879772e53a6a731ec12f (diff) |
[ruby/rdoc] Prefer `require 'cgi/util'` instead of `require 'cgi'`
RDoc is using only CGI.escape, escapeHTML, and unescape.
We don't have to load the whole source code of cgi gem.
https://github.com/ruby/rdoc/commit/d096222cc2
Diffstat (limited to 'lib/rdoc/context.rb')
-rw-r--r-- | lib/rdoc/context.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/rdoc/context.rb b/lib/rdoc/context.rb index 8e15697034..c6edfb473c 100644 --- a/lib/rdoc/context.rb +++ b/lib/rdoc/context.rb @@ -1,6 +1,4 @@ # frozen_string_literal: true -require 'cgi' - ## # A Context is something that can hold modules, classes, methods, attributes, # aliases, requires, and includes. Classes, modules, and files are all |