Sha256: 40cd7825b394c1bb579134743f80d93ebd439f2cede0b8962a60d5bd5c28cd3b
Contents?: true
Size: 319 Bytes
Versions: 19
Compression:
Stored size: 319 Bytes
Contents
module Sfn::Util def requestify(parameters, prefix=nil) parameters.inject({}) do |results, kv| if Hash === kv.last results = results.merge(requestify(kv.last, "#{prefix}[#{kv.first}]")) else results["#{prefix}[#{kv.first}]"] = kv.last end results end end end
Version data entries
19 entries across 19 versions & 3 rubygems