# File lib/core/facets/string/titlecase.rb, line 10 def titlecase gsub(/\b\w/){ $`[-1,1] == "'" ? $& : $&.upcase } end