Module: OpenTok::HashExtensions

Defined in:
lib/opentok/extensions/hash.rb

Instance Method Summary collapse

Instance Method Details

#camelize_keys!Object



3
4
5
6
7
8
9
10
# File 'lib/opentok/extensions/hash.rb', line 3

def camelize_keys!
  keys.each do |k|
    new_key = k.to_s.camelize(:lower)
    new_key = new_key.to_sym if k.is_a? Symbol
    self[new_key] = self.delete(k)
  end
  self
end