Class: String

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

Instance Method Summary collapse

Instance Method Details

#camelizeObject



3
4
5
# File 'lib/exceptioner/core_ext/string/inflections.rb', line 3

def camelize
  gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
end