Class: String
Overview
String
Instance Method Summary collapse
-
#camelize ⇒ String
Returns the camelized version of self.
Instance Method Details
#camelize ⇒ String
Returns the camelized version of self
6 7 8 9 10 |
# File 'opal/fron/core_ext/string.rb', line 6 def camelize `#{self}.replace(/(?:-|_|(\/))([a-z\d]*)/gi,function(m,first,second){ return second.charAt(0).toUpperCase() + second.substr(1).toLowerCase() })` end |