From 76320565f5535e99e105b3d7426e901ab43ea889 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 3 Aug 2023 11:07:45 +0100 Subject: [PATCH] pass result of method(:register) to each block filename and file data are yielded as arguments to register --- lib/voicemeeter/configs.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/voicemeeter/configs.rb b/lib/voicemeeter/configs.rb index e19a2c3..8ab75aa 100644 --- a/lib/voicemeeter/configs.rb +++ b/lib/voicemeeter/configs.rb @@ -99,9 +99,7 @@ module Voicemeeter def run logger.debug "Running #{self}" configs[:reset] = TOMLStrBuilder.run(@kind) - @filereader.each do |identifier, data| - register(identifier, data) - end + @filereader.each(&method(:register)) self end