Permalink
Browse files

AS guide: documents String#titleize

  • Loading branch information...
1 parent aed8c1f commit 71990a4157f37bc7529184654265679a62a9e121 @fxn fxn committed Mar 1, 2010
Showing with 13 additions and 0 deletions.
  1. +13 −0 railties/guides/source/active_support_core_extensions.textile
@@ -1378,6 +1378,19 @@ end
NOTE: Defined in +active_support/core_ext/string/inflections.rb+.
+h5. +titleize+
+
+The method +titleize+ capitalizes the words in the receiver:
+
+<ruby>
+"alice in wonderland".titleize # => "Alice In Wonderland"
+"fermat's enigma".titleize # => "Fermat's Enigma"
+</ruby>
+
++titleize+ is aliased to +titlecase+.
+
+NOTE: Defined in +active_support/core_ext/string/inflections.rb+.
+
h3. Extensions to +Numeric+
h4. Bytes

0 comments on commit 71990a4

Please sign in to comment.