vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/rack/typhoeus/middleware/params_decoder/helper.rb
# Recursively decodes Typhoeus encoded arrays in given Hash.
#
# @param hash [Hash]. This Hash will be modified!
#
# @return [Hash] Hash with properly decoded nested arrays.
Recursively decodes Typhoeus encoded arrays in given Hash.
Recursively decodes Typhoeus encoded arrays in given Hash .
def decode!(hash)
            return hash unless hash.is_a?(Hash)
            hash.each_pair do |key,value|
              if value.is_a?(Hash)
                decode!(value)
                hash[key] = convert(value)
              end
            end
            hash
          end
def decode! ( hash ) return hash unless hash . is_a? ( Hash ) hash . each_pair do | key , value | if value . is_a? ( Hash ) decode! ( value ) hash [ key ] = convert ( value ) end end hash end
Recursively decodes Typhoeus encoded arrays in given Hash.
Recursively decodes Typhoeus encoded arrays in given Hash .
Hash with properly decoded nested arrays.
Hash with properly decoded nested arrays .
Hash
hash
. This Hash will be modified!
. This Hash will be modified!