Flowdock
method

titleize

Importance_1
v3.2.1 - Show latest stable - 0 notes - Class: ActiveSupport::Multibyte::Chars
titleize() public

Capitalizes the first letter of every word, when possible.

Example:

"ÉL QUE SE ENTERÓ".mb_chars.titleize    # => "Él Que Se Enteró"
"日本語".mb_chars.titleize                 # => "日本語"
Show source
Register or log in to add new notes.