Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/string/camelize.rb

Instance Method Summary collapse

Instance Method Details

#camelizeObject


2
3
4
# File 'lib/core_ext/string/camelize.rb', line 2

def camelize
  split(/[^a-z0-9]/i).map { |word| word.capitalize }.join
end