Method: Bake::Format::NDJSON#each

Defined in:
lib/bake/format/ndjson.rb

#eachObject



27
28
29
30
31
32
33
# File 'lib/bake/format/ndjson.rb', line 27

def each
	return to_enum unless block_given?
	
	@file.each_line do |line|
		yield JSON.parse(line)
	end
end