Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#fix_keysObject



6
7
8
9
10
# File 'lib/game_2d/hash.rb', line 6

def fix_keys
  recurse(Hash, Array) do |x|
    x.is_a?(Hash) ? x.symbolize_keys : x
  end
end