Camelize String


/ Published in: Ruby
Save to your folder(s)



Copy this code and paste it in your HTML
  1. class String
  2. def camelize
  3. self.split(/[^a-z0-9]/i).map{|w| w.capitalize}.join
  4. end
  5. end

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.