Class: String

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

Instance Method Summary collapse

Instance Method Details

#camelizeObject



4
5
6
# File 'lib/string.rb', line 4

def camelize
  split(/[^a-z0-9]/i).collect(&:capitalize).join
end