Class: String

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

Instance Method Summary collapse

Instance Method Details

#camelizeObject



8
9
10
11
12
# File 'lib/okpay.rb', line 8

def camelize
  self.gsub!(/^[a-z]|[\s_]+[a-z]/) { |a| a.upcase }
  self.gsub!(/[\s_]/, '')
  self
end