aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-12 16:34:45 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-12 16:34:45 +0000
commitd1d0c52a1ee0a9fbdb2472027cfa82c3da0ca0a8 (patch)
tree5b1d6bd0e60b735d428c1771643c03325d7cd396
parenta46bb48bcb62a4171194d5b21bdf6b34e2b5952a (diff)
downloadruby-d1d0c52a1ee0a9fbdb2472027cfa82c3da0ca0a8.tar.gz
make module_function
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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