mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-24 02:40:48 +00:00
use first,last array methods
This commit is contained in:
parent
f594f2a9a0
commit
54693ed76f
@ -13,13 +13,13 @@ module Voicemeeter
|
||||
|
||||
KindMap =
|
||||
Data.define(:name, :ins, :outs, :vban, :asio, :insert, :num_buttons) do
|
||||
def phys_in = ins[0]
|
||||
def phys_in = ins.first
|
||||
|
||||
def virt_in = ins[1]
|
||||
def virt_in = ins.last
|
||||
|
||||
def phys_out = outs[0]
|
||||
def phys_out = outs.first
|
||||
|
||||
def virt_out = outs[1]
|
||||
def virt_out = outs.last
|
||||
|
||||
def num_strip = ins.sum
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user