Class: Hubspot::Helpers::CamelCase

Inherits:
Object
  • Object
show all
Defined in:
lib/hubspot/helpers/camel_case.rb

Instance Method Summary collapse

Instance Method Details

#format(string) ⇒ Object



4
5
6
# File 'lib/hubspot/helpers/camel_case.rb', line 4

def format(string)
  string.split('_').collect(&:capitalize).join
end