diff options
| author | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-12 16:34:45 +0000 |
|---|---|---|
| committer | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-12 16:34:45 +0000 |
| commit | d497958bdaaa277a8d436070766e952072c3b1d4 (patch) | |
| tree | 71260bb3206c78d2dbbce02b4ef140c235b424ad /lib | |
| parent | 22b831e358d4f68093b78225e6d046745a0c8e0a (diff) | |
| download | ruby-d497958bdaaa277a8d436070766e952072c3b1d4.tar.gz ruby-d497958bdaaa277a8d436070766e952072c3b1d4.tar.xz ruby-d497958bdaaa277a8d436070766e952072c3b1d4.zip | |
make module_function
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/erb.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/erb.rb b/lib/erb.rb index d9fdc7456..6b1cdaed2 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -781,6 +781,8 @@ class ERB s.to_s.gsub(/&/, "&").gsub(/\"/, """).gsub(/>/, ">").gsub(/</, "<") 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 |
