Sha256: 05a6daf5a4b151a129f3ba7d2cf4d4bd4f58bc8250a15a8dce6335296932b6a1
Contents?: true
Size: 241 Bytes
Versions: 18
Compression:
Stored size: 241 Bytes
Contents
class String def event_camelize `return #{self}.replace(/(^|_)([^_]+)/g, function(match, pre, word, index) { var capitalize = true; return capitalize ? word.substr(0,1).toUpperCase()+word.substr(1) : word; })` end end
Version data entries
18 entries across 18 versions & 2 rubygems