This commit is contained in:
onyx-and-iris 2023-08-31 23:04:31 +01:00
parent 42baa543fc
commit 20684c645e

View File

@ -37,12 +37,12 @@ module Voicemeeter
def apply(params) def apply(params)
params.each do |key, val| params.each do |key, val|
if val.is_a? Hash if val.is_a? Hash
target = pulic_send(key) target = public_send(key)
target.apply(val) target.apply(val)
elsif key == :mode elsif key == :mode
mode.pulic_send("#{val}=", true) mode.public_send("#{val}=", true)
else else
pulic_send("#{key}=", val) public_send("#{key}=", val)
end end
end end
end end