forward Remote args with triple dot

This commit is contained in:
onyx-and-iris 2023-07-25 10:03:43 +01:00
parent 0693ac8fec
commit dced3bc183
2 changed files with 2 additions and 2 deletions

View File

@ -25,11 +25,11 @@ module Voicemeeter
@sync = kwargs[:sync] || false
@ratelimit = kwargs[:ratelimit] || RATELIMIT
@delay = kwargs[:delay] || DELAY
@midi = Midi.new
@event =
Events::Tracker.new(
**(kwargs.select { |k, _| %i[pdirty mdirty ldirty midi].include? k })
)
@midi = Midi.new
@callback = Events::Callback.new
@que = Queue.new
@cache = {strip_mode: 0}

View File

@ -44,7 +44,7 @@ module Voicemeeter
public attr_reader :strip, :bus, :button, :vban, :command, :device, :option
private attr_writer :strip, :bus, :button, :vban, :command, :device, :option
def initialize(kind, **)
def initialize(...)
super
director.each { |step| send("#{step}=", steps(step).call) }
end