diff options
Diffstat (limited to 'lib/rss/utils.rb')
-rw-r--r-- | lib/rss/utils.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/rss/utils.rb b/lib/rss/utils.rb index ae6f69bcf1..1c30ae74bc 100644 --- a/lib/rss/utils.rb +++ b/lib/rss/utils.rb @@ -1,17 +1,17 @@ module RSS - module Utils + module Utils - def get_file_and_line_from_caller(i=0) - file, line, = caller[i].split(':') - [file, line.to_i] - end + def get_file_and_line_from_caller(i=0) + file, line, = caller[i].split(':') + [file, line.to_i] + end - def html_escape(s) - s.to_s.gsub(/&/, "&").gsub(/\"/, """).gsub(/>/, ">").gsub(/</, "<") - end - alias h html_escape - - end + def html_escape(s) + s.to_s.gsub(/&/, "&").gsub(/\"/, """).gsub(/>/, ">").gsub(/</, "<") + end + alias h html_escape + + end end |