summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/erb.rb4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e09107b7f..e3654158d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Feb 13 01:33:19 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/erb.rb (ERB::Util.h, u): make it module_function.
+
Sat Feb 12 22:17:11 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (TAG_THREAD): to start a new thread.
diff --git a/lib/erb.rb b/lib/erb.rb
index d9fdc7456a..6b1cdaed20 100644
--- a/lib/erb.rb
+++ b/lib/erb.rb
@@ -781,6 +781,8 @@ class ERB
s.to_s.gsub(/&/, "&amp;").gsub(/\"/, "&quot;").gsub(/>/, "&gt;").gsub(/</, "&lt;")
end
alias h html_escape
+ module_function :h
+ module_function :html_escape
#
# A utility method for encoding the String _s_ as a URL.
@@ -798,6 +800,8 @@ class ERB
s.to_s.gsub(/[^a-zA-Z0-9_\-.]/n){ sprintf("%%%02X", $&.unpack("C")[0]) }
end
alias u url_encode
+ module_function :u
+ module_function :url_encode
end
end