Sha256: 88f5d54545deadafadbd2196df37ee512fe3deb045097548de546525ae228f94
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
%w{ active_support/json/encoding }.each do |active_support_3_requirement| require active_support_3_requirement end if ::ActiveSupport::VERSION::MAJOR == 3 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 hsh.to_json end f.write ']' nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mysql2xxxx-0.1.1 | lib/mysql2xxxx/writer/json.rb |
mysql2xxxx-0.1.0 | lib/mysql2xxxx/writer/json.rb |