Sha256: 84471274366b14350b6a4036dc7eee2cebee1274fbd64653329d475658beb19a
Contents?: true
Size: 263 Bytes
Versions: 26
Compression:
Stored size: 263 Bytes
Contents
#!/usr/bin/env ruby require 'json' TAB_REGEX = /\t/ STDIN.each_line do |line| output_object = {} fields = line.split(TAB_REGEX) ARGV.each_with_index do |argument, index| output_object[argument] = fields[index] end puts output_object.to_json end
Version data entries
26 entries across 26 versions & 1 rubygems