# File lib/core_ext/string.rb, line 2 def camelize sub(/^([a-z])/) {$1.upcase}.gsub(/_([a-z])/) do $1.upcase end end