Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/igs_pie_chart.rb

Instance Method Summary collapse

Instance Method Details

#camelizeObject



30
31
32
33
# File 'lib/igs_pie_chart.rb', line 30

def camelize
  return self if self !~ /_/ && self =~ /[A-Z]+.*/
  split('_').map{|e| e.capitalize}.join
end