# encoding: utf-8 # module Mode module Sdk # Provides simple utility methods for manipulating a Hash # module HashUtil # Stringify hash keys # # @param hash [Hash] the original hash # # @return [Hash] a new hash with string keys # def stringify_keys(hash) hash.each_with_object({}) do |(key, value), result| result[key.to_s] = value end end end end end