mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 15:00:46 +00:00
syntax changes
This commit is contained in:
parent
1a3192324d
commit
af55e8ce1f
@ -45,7 +45,7 @@ module Voicemeeter
|
|||||||
|
|
||||||
def info(msg = nil)
|
def info(msg = nil)
|
||||||
info_msg = msg ? ["#{msg} events."] : []
|
info_msg = msg ? ["#{msg} events."] : []
|
||||||
info_msg += if any?
|
info_msg << if any?
|
||||||
["Now listening for #{get.join(", ")} events"]
|
["Now listening for #{get.join(", ")} events"]
|
||||||
else
|
else
|
||||||
["Not listening for any events"]
|
["Not listening for any events"]
|
||||||
@ -57,7 +57,7 @@ module Voicemeeter
|
|||||||
params.each do |param|
|
params.each do |param|
|
||||||
define_singleton_method("#{param}=") do |value|
|
define_singleton_method("#{param}=") do |value|
|
||||||
instance_variable_set("@#{param}", value)
|
instance_variable_set("@#{param}", value)
|
||||||
info("#{param} #{send(param) ? "added to" : "removed from"}")
|
info("#{param} #{value ? "added to" : "removed from"}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user