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


129
130
131
132
133
# File 'lib/active_support/core_ext/hash/indifferent_access.rb', line 129

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