public Method

Utils.to_class_name(name)

Convert a name_with_underscores to CamelCase.

Source Code

# File rss/utils.rb, line 6
def to_class_name(name)
  name.split(/_/).collect do |part|
    "#{part[0, 1].upcase}#{part[1..-1]}"
  end.join("")
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.