Sha256: c34398f402f00c064c050bcadcca1d0548b97cf42fbe2713cf4d8d0c51db99e5

Contents?: true

Size: 189 Bytes

Versions: 9

Compression:

Stored size: 189 Bytes

Contents

module Thoth
  module Output
    class Json

      def initialize(io)
        @io = io
      end

      def write(hash)
        @io.write("#{JSON.dump(hash)}\n")
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
thoth-3.0.0 lib/thoth/output/json.rb
thoth-2.0.0 lib/thoth/output/json.rb
thoth-1.0.2 lib/thoth/output/json.rb
thoth-1.0.1 lib/thoth/output/json.rb
thoth-1.0.0 lib/thoth/output/json.rb
thoth-0.0.7 lib/thoth/output/json.rb
thoth-0.0.6 lib/thoth/output/json.rb
thoth-0.0.5 lib/thoth/output/json.rb
thoth-0.0.3 lib/thoth/output/json.rb