Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/misc/indifferent_access.rb

Overview

:nodoc:

Direct Known Subclasses

HashWithIndifferentAccess

Instance Method Summary collapse

Instance Method Details

#with_indifferent_accessObject



126
127
128
129
130
# File 'lib/ext/misc/indifferent_access.rb', line 126

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