Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add usage examples to readme

  • Loading branch information...
commit 1cf43ae54e26fb7f4638ed97419640f0b7f1310a 1 parent 0d453ba
@jlindley authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 README.markdown
13 README.markdown
@@ -1,4 +1,4 @@
A port of John Gruber's title casing script to Ruby.
@@ -23,6 +23,17 @@ INSTALL:
Download the tarball for now, will be mirrored to ruby forge shortly.
+Either create a new instance of TitleClass with the string as an argument, or use the monkeypatched #titlecase method on string objects.
+ require 'rubygems'
+ require 'title_case'
+"my little string").to_s #=> "My Little String"
+ "a boat, a duck: a bit too much".titlecase #=> "A Boat, a Duck: A Bit Too Much"
Please sign in to comment.
Something went wrong with that request. Please try again.