Class: Hash

Inherits:
Object show all
Defined in:
lib/wolf_core/utils/hash_extension.rb

Defined Under Namespace

Modules: IndifferentAccess

Instance Method Summary collapse

Instance Method Details

#with_indifferent_accessObject



2
3
4
5
6
# File 'lib/wolf_core/utils/hash_extension.rb', line 2

def with_indifferent_access
  hash = self.dup
  hash.extend IndifferentAccess
  hash
end