Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#stringify_keys!Object



2
3
4
5
6
7
8
9
10
# File 'lib/ebay/ebay.rb', line 2

def stringify_keys!
  keys.each do |key|
    unless key.class.to_s == "String" # weird hack to make the tests run when string_ext_test.rb is also running
      self[key.to_s] = self[key]
      delete(key)
    end
  end
  self
end