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



135
136
137
138
139
# File 'lib/active_support/core_ext/hash/indifferent_access.rb', line 135

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