# File lib/facet/string/camelcase.rb, line 16 def camelcase(first=false, on='_\s') if first gsub(/(^|[#{on}]+)([A-Za-z])/){ $2.upcase } else gsub(/([#{on}]+)([A-Za-z])/){ $2.upcase } end end