diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-03 15:31:57 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-03 15:31:57 +0000 |
commit | ca1f8939daaf49f0ae4c6a0fc9a378bc095c99a7 (patch) | |
tree | 073e45fa7693059f72ec56d8109bab43d8cac0ee /lib/rss/utils.rb | |
parent | 1839bc333d514f567c66e715fd7999a157fde41d (diff) |
* lib/rss: supported Image module.
http://web.resource.org/rss/1.0/modules/image/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/utils.rb')
-rw-r--r-- | lib/rss/utils.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rss/utils.rb b/lib/rss/utils.rb index 1c30ae74bc..19f27183eb 100644 --- a/lib/rss/utils.rb +++ b/lib/rss/utils.rb @@ -2,6 +2,13 @@ module RSS module Utils + module_function + def to_class_name(name) + name.split(/_/).collect do |part| + "#{part[0, 1].upcase}#{part[1..-1]}" + end.join("") + end + def get_file_and_line_from_caller(i=0) file, line, = caller[i].split(':') [file, line.to_i] |