| Module | Cameltoe::String |
| In: |
lib/cameltoe.rb
|
Use Cameltoe‘s string functions to give your strings that signature hump-in-the-middle.
By default, cameltoeize converts strings to CameLtoEcasE. If the argument to camelize is set to ":inverse" then camelize produces iNVERSECaMeLTOECASe.
Examples
cameltoeize("Lindsay Lohan") #=> "LindSayLohaN"
cameltoeize("Jessica Simpson") #=> "JessiCasImpsoN"
cameltoeize("Britney Spears", :inverse) #=> "bRITNeYsPEARs"
cameltoeize("Anna Kournikova", :inverse) #=> "aNNAKoURnIKOVa"