require "P4" p4 = P4.new p4.parse_forms p4.connect j = p4.fetch_jobspec j.keys.each {|k| printf("Key/value: %s/%s\n", k, j[k])}