Sha256: 8681a4edf3aefed9e062c42c5acb08050ff446728407d581ae1b8c1b7e60f2f6
Contents?: true
Size: 416 Bytes
Versions: 40
Compression:
Stored size: 416 Bytes
Contents
begin require 'json' rescue LoadError raise <<-ERR The json gem must be installed for json output. To install it: $ [sudo] gem install json -v"~>1.4.6" ERR end module Timetrap module Formatters class Json attr_accessor :output def initialize entries @output = entries.map do |e| next unless e.end e.values end.compact.to_json end end end end
Version data entries
40 entries across 40 versions & 1 rubygems