Module: CamelCaseMixin

Defined in:
lib/usher/interface.rb

Overview

From Extlib

Instance Method Summary collapse

Instance Method Details

#camel_caseObject



3
4
5
6
# File 'lib/usher/interface.rb', line 3

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