lib/navo/utils.rb
# Converts a string containing underscores/hyphens/spaces into CamelCase.
#
# @param [String] string
# @return [String]
Converts a string containing underscores/hyphens/spaces into CamelCase.
Converts a string containing underscores / hyphens / spaces into CamelCase .
def camel_case(string)
      string.split(/_|-| /)
            .map { |part| part.sub(/^\w/) { |c| c.upcase } }
            .join
    end
def camel_case ( string ) string . split ( / _|-|  / ) . map { | part | part . sub ( / ^ \w / ) { | c | c . upcase } } . join end
Converts a string containing underscores/hyphens/spaces into CamelCase.
Converts a string containing underscores / hyphens / spaces into CamelCase .
None
String
string
<not_specific>
<not_specific>
None