Method: PostHog::Utils#stringify_keys
- Defined in:
- lib/posthog/utils.rb
#stringify_keys(hash) ⇒ Object
public: Return a new hash with keys as strings
25 26 27 |
# File 'lib/posthog/utils.rb', line 25 def stringify_keys(hash) hash.each_with_object({}) { |(k, v), memo| memo[k.to_s] = v } end |