Module: Rack::DevMark::Utils

Included in:
Middleware
Defined in:
lib/rack/dev-mark/utils.rb

Instance Method Summary collapse

Instance Method Details

#camelize(s) ⇒ Object



4
5
6
# File 'lib/rack/dev-mark/utils.rb', line 4

def camelize(s)
  s.split('_').map{ |_s| "#{_s[0].upcase}#{_s[1..-1]}" }.join
end