granth green sumo

turkey sandwiches!

:point_up: nuh-uh-uh He was way more interested in the bucket than the turtle. :sun_with_face::umbrella:️:rainbow: Photo Photo :thumbsup::hamburger: Beets of the Southern Wild

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