class String
Public Instance Methods
event_camelize()
click to toggle source
# File lib/react/ext/string.rb, line 2 def event_camelize `#{self}.replace(/(^|_)([^_]+)/g, function(match, pre, word, index) { var capitalize = true; return capitalize ? word.substr(0,1).toUpperCase()+word.substr(1) : word; })` end