Class: String

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

Instance Method Summary collapse

Instance Method Details

#camelcase_notationObject



5
6
7
8
# File 'lib/bizflow/monkey_patch.rb', line 5

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