Sha256: 2a9c386e4866f4a091cd979d5f59d5b0dede5de11892192c605efba7cfb3fea7
Contents?: true
Size: 322 Bytes
Versions: 1
Compression:
Stored size: 322 Bytes
Contents
require 'json' module Mysql2xxxx class JSON < Writer def to_file(f) first = true f.write '[' stream_hashes do |hsh| if first first = false else f.write ',' end f.write ::JSON.generate(hsh) end f.write ']' nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mysql2xxxx-0.2.0 | lib/mysql2xxxx/writer/json.rb |