Class: String

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

Instance Method Summary collapse

Instance Method Details

#camelizeObject


19
20
21
# File 'lib/sinatra/rabbit.rb', line 19

def camelize
  split('_').map { |w| w.capitalize }.join
end