public
Description: A Ruby port of John Gruber's TitleCase Perl script
Homepage:
Clone URL: git://github.com/samaaron/titlecase-rb.git
titlecase-rb / README
100644 19 lines (13 sloc) 0.547 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This filter changes all words to Title Caps, and attempts to be clever
about *un*capitalising small words like a/an/the in the input.
 
The list of "small words" which are not capped comes from
the New York Times Manual of Style, plus 'vs' and 'v'.
 
Sam Aaron
http://sam.aaron.name
21st of May, 2008
 
This is a Ruby port of the original Perl script written by John Gruber
http://daringfireball.net/2008/05/title_case
 
License: http://www.opensource.org/licenses/mit-license.php
 
TODO
----
 
Gemify it and extend String with some title_case goodness