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