granth green sumo

turkey sandwiches!

Photo Photo :sparkles:️‍:rainbow:️‍⚧️:sparkles: Photo Photo Photo

Titleize 22 May 2008

ruby, rails

Like many others, I wrote a Ruby port of I used it as excuse to make my first RubyGem.


gem install titleize


require 'titleize'
"an example of titling".titleize  # => "An Example of Titling"

If you prefer, titlecase is an alias to titleize.

Rails Support

If Rails is running, titleize will install itself on Inflector and still convert underscores and CamelCase like the default Rails titleize.

previously: Set an Icon With Rubycocoa