Module Cameltoe::String
In: lib/cameltoe.rb

Cameltoe string helpers

Use Cameltoe‘s string functions to give your strings that signature hump-in-the-middle.

Methods

Public Instance methods

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"

[Validate]