module Octiron::Support::CamelCase

@see CamelCase::camel_case

Public Instance Methods

camel_case(underscored_name) click to toggle source

Takes an underscored name and turns it into a CamelCase String @param underscored_name (String, Symbol) the underscored name to turn

into camel case.

@return (String) CamelCased version of the underscored_name

# File lib/octiron/support/camel_case.rb, line 20
def camel_case(underscored_name)
  return underscored_name.to_s.split("_").map do |word|
    word.upcase[0] + word[1..-1]
  end.join
end