diff --git a/lib/erb/util.rb b/lib/erb/util.rb index 42c7a57..efa8ca1 100644 --- a/lib/erb/util.rb +++ b/lib/erb/util.rb @@ -47,19 +47,19 @@ module ERB::Util alias h html_escape module_function :h - # - # A utility method for encoding the String _s_ as a URL. - # - # require "erb" - # include ERB::Util - # - # puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide") - # - # _Generates_ - # - # Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide - # if CGI.respond_to?(:escapeURIComponent) + # + # A utility method for encoding the String _s_ as a URL. + # + # require "erb" + # include ERB::Util + # + # puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide") + # + # _Generates_ + # + # Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide + # def url_encode(s) CGI.escapeURIComponent(s.to_s) end diff --git a/lib/erb/version.rb b/lib/erb/version.rb index 0875dcb..1c2c6fe 100644 --- a/lib/erb/version.rb +++ b/lib/erb/version.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true class ERB + # The version string VERSION = '5.0.2' end