vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/rack/typhoeus/middleware/params_decoder/helper.rb
# If the Hash is an array encoded by typhoeus an array is returned
# else the self is returned
#
# @param hash [Hash] The Hash to convert into an Array.
#
# @return [Arraya/Hash]
If the Hash is an array encoded by typhoeus an array is returned
else the self is returned
If the Hash is an array encoded by typhoeus an array is returned else the self is returned
def convert(hash)
            if encoded?(hash)
              hash.sort{ |a, b| a[0].to_i <=> b[0].to_i }.map{ |key, value| value }
            else
              hash
            end
          end
def convert ( hash ) if encoded? ( hash ) hash . sort { | a , b | a [ 0 ] . to_i <=> b [ 0 ] . to_i } . map { | key , value | value } else hash end end
If the Hash is an array encoded by typhoeus an array is returned
else the self is returned
If the Hash is an array encoded by typhoeus an array is returned else the self is returned
None
Arraya/Hash
hash
The Hash to convert into an Array.
The Hash to convert into an Array .