#!/usr/bin/env ruby # # http://termos.vemod.net/csv-pretty-printer # %w.map(&method(:require)) class CSVPrettyPrinter def initialize(csv) @tpp = TablePrettyPrinter.new(FasterCSV.parse(csv)) end def output!(*args) @tpp.output!(*args) end end if __FILE__ == $0 CSVPrettyPrinter.new(ARGF).output! end