From 633d1737399d80586e7e8f1924c8ae3252af837b Mon Sep 17 00:00:00 2001 From: gemmaro Date: Mon, 11 Nov 2024 21:06:40 +0900 Subject: [PATCH] Remove the redundant block argument of the parser's each method. --- lib/ndjson.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ndjson.rb b/lib/ndjson.rb index 6048885..b233701 100644 --- a/lib/ndjson.rb +++ b/lib/ndjson.rb @@ -12,7 +12,7 @@ def initialize input end end - def each &block + def each @input.each do |line| json_line = JSON.parse(line) yield json_line