camel_case(str)
public
Receives a string and convert it to camel case. camel_case returns
CamelCase.
Parameters
String
Returns
String
# File lib/bundler/vendor/thor/lib/thor/util.rb, line 104
def camel_case(str)
return str if str !~ /_/ && str =~ /[A-Z]+.*/
str.split("_").map(&:capitalize).join
end