pass result of method(:register) to each block

filename and file data are yielded as arguments to register
This commit is contained in:
onyx-and-iris 2023-08-03 11:07:45 +01:00
parent a754e3b9ea
commit 76320565f5

View File

@ -99,9 +99,7 @@ module Voicemeeter
def run def run
logger.debug "Running #{self}" logger.debug "Running #{self}"
configs[:reset] = TOMLStrBuilder.run(@kind) configs[:reset] = TOMLStrBuilder.run(@kind)
@filereader.each do |identifier, data| @filereader.each(&method(:register))
register(identifier, data)
end
self self
end end