Module: ActiveSupport::CoreExtensions::Hash::IndifferentAccess

Included in:
Hash
Defined in:
lib/active_support/core_ext/hash/indifferent_access.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#with_indifferent_accessObject



80
81
82
83
84
# File 'lib/active_support/core_ext/hash/indifferent_access.rb', line 80

def with_indifferent_access
  hash = HashWithIndifferentAccess.new(self)
  hash.default = self.default
  hash
end