Class: String

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

Instance Method Summary collapse

Instance Method Details

#camelizeObject



16
17
18
19
# File 'lib/innovative_graph_suite.rb', line 16

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