Class: String

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

Instance Method Summary collapse

Instance Method Details

#camelizeObject



29
30
31
32
# File 'lib/igs_bar_chart.rb', line 29

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