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
logger.debug "Running #{self}"
configs[:reset] = TOMLStrBuilder.run(@kind)
@filereader.each do |identifier, data|
register(identifier, data)
end
@filereader.each(&method(:register))
self
end