Sha256: c24e641751077cdae21109792664337742bdf6830be0f0e589839e3eb2ae7f97
Contents?: true
Size: 506 Bytes
Versions: 13
Compression:
Stored size: 506 Bytes
Contents
require 'jrjackson' # XXX Fake impl require 'json' module BEL::Extension::Format module JSONImplementation class JSONReader def initialize(data) @data = data end def each(&block) if block_given? JSON.load(@data).each do |obj| yield obj end else to_enum(:each) end end end class JSONWriter def write_json_object(json_object) JSON.dump(json_object) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems