Sha256: 2cbe120a3c3a1a1d11a6032ba0d7e786ccca20c02c0265581eebc8b88cc8049d

Contents?: true

Size: 305 Bytes

Versions: 12

Compression:

Stored size: 305 Bytes

Contents

#Object
class Object
    def deep_symbolize_keys
        self
    end
end

class Hash
    def deep_symbolize_keys
        symbolize_keys.tap { |h| h.each { |k, v| h[k] = v.deep_symbolize_keys } }
    end
end


#Array
class Array
    def deep_symbolize_keys
        map(&:deep_symbolize_keys)
    end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ue-ruby-sdk-1.1.13 lib/utilities/extensions.rb
ue-ruby-sdk-1.1.12 lib/utilities/extensions.rb
ue-ruby-sdk-1.1.9 lib/utilities/extensions.rb
ue-ruby-sdk-1.1.8 lib/utilities/extensions.rb
ue-ruby-sdk-1.1.7 lib/utilities/extensions.rb
ue-ruby-sdk-1.1.6 lib/utilities/extensions.rb
ue-ruby-sdk-1.1.5 lib/utilities/extensions.rb
ue-ruby-sdk-1.1.3 lib/utilities/extensions.rb
ue-ruby-sdk-1.1.2 lib/utilities/extensions.rb
ue-ruby-sdk-1.1.1 lib/utilities/extensions.rb
ue-ruby-sdk-1.1.0 lib/utilities/extensions.rb
ue-ruby-sdk-1.0.0 lib/utilities/extensions.rb