diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-11-25 00:53:36 -0800 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-11-25 08:54:18 +0000 |
commit | addb1cbbfd93d30e4752ec63b2d5ff96a13fac3d (patch) | |
tree | 5699d090b4d819c7529730168e292fa6f52efbfb /lib/erb/util.rb | |
parent | 58dc9c931b89931d339cf9db5f329cf650b23be8 (diff) |
[ruby/erb] Keep ERB::Util#html_escape private
ERB::Util.html_escape has been public, but ERB::Util#html_escape had
been private.
https://github.com/ruby/erb/commit/e62210bf56
Diffstat (limited to 'lib/erb/util.rb')
-rw-r--r-- | lib/erb/util.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/erb/util.rb b/lib/erb/util.rb index 9ba4583f82..97f5abbba0 100644 --- a/lib/erb/util.rb +++ b/lib/erb/util.rb @@ -21,14 +21,14 @@ module ERB::Util # # is a > 0 & a < 10? # - unless method_defined?(:html_escape) # for JRuby + unless defined?(ERB::Util.html_escape) # for JRuby def html_escape(s) CGI.escapeHTML(s.to_s) end + module_function :html_escape end alias h html_escape module_function :h - module_function :html_escape # # A utility method for encoding the String _s_ as a URL. |