class Hash
Public Instance Methods
stringify_symbol_keys()
click to toggle source
like stringify_keys, but does not attempt to stringify anything other than Symbols. other keys are left alone.
# File lib/mauth/core_ext.rb, line 4 def stringify_symbol_keys inject({}) { |acc, (k, v)| acc.update((k.is_a?(Symbol) ? k.to_s : k) => v) } end