src code

instance method String#camelize

String#camelize() → String

Converts a string separated by dashes into a camelCase equivalent. For instance, 'foo-bar' would be converted to 'fooBar'.

Examples

'background-color'.camelize();
// -> 'backgroundColor'
 '-moz-binding'.camelize();
// -> 'MozBinding'