Let\'s say I have a hash like this, with various values belonging to one parameter.
a = {} a[:bitrate] = [\"100\", \"500\", \"1000\"] a[:f
Just FYI I took fl00r's approach and monkey-patched it. I like it a bit better.
class Hash def product product = values[0].product(*values[1..-1]) product.map{|p| Hash[keys.zip p]} end end