class String
Patch String
to have a nice camel_case
function
Public Instance Methods
camel_case()
click to toggle source
# File lib/gg_check.rb, line 167 def camel_case return self if self !~ /_/ && self =~ /[A-Z]+.*/ split('_').map{|e| e.capitalize}.join end