lib/json/streamer.rb in json-streamer-1.1.2 vs lib/json/streamer.rb in json-streamer-1.2.0
- old
+ new
@@ -1,7 +1,9 @@
require_relative "streamer/json_streamer"
module Json
module Streamer
-
+ def self.parser(file_io: nil, chunk_size: 1000)
+ JsonStreamer.new(file_io, chunk_size)
+ end
end
end