Public instance methods
make_indifferent!
()
Makes a hash able to be accessed via symbol or string keys.
[show source]
# File lib/core_ext/hash.rb, line 3 def make_indifferent! keys_values = self.dup indifferent = Hash.new { |h,k| h[k.to_s] if Symbol === k } replace(indifferent) merge!(keys_values) end