Sha256: a4313843383bb6cbefcdbd8018339da8f3a98d3b4b3442ee982a1170b96c985b
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 Bytes
Contents
module RocketChat # # Rocket.Chat generic utility functions # module Util # # Stringify symbolized hash keys # @param [Hash] hash A string/symbol keyed hash # @return Stringified hash # def stringify_hash_keys(hash) newhash = {} hash.each do |key, value| newhash[key.to_s] = value end newhash end module_function :stringify_hash_keys end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rocketchat-0.0.2 | lib/rocket_chat/util.rb |
rocketchat-0.0.1 | lib/rocket_chat/util.rb |