Module: AlsaRawMIDI::Device::ClassMethods
- Included in:
- AlsaRawMIDI::Device
- Defined in:
- lib/alsa-rawmidi/device.rb
Instance Method Summary collapse
-
#all ⇒ Array<Input, Output>
All devices.
-
#all_by_type ⇒ Hash
A hash of devices, partitioned by direction.
-
#first(direction) ⇒ Input, Output
Select the first device of the given direction.
-
#last(direction) ⇒ Input, Output
Select the last device of the given direction.
Instance Method Details
#all ⇒ Array<Input, Output>
All devices
30 31 32 |
# File 'lib/alsa-rawmidi/device.rb', line 30 def all all_by_type.values.flatten end |
#all_by_type ⇒ Hash
A hash of devices, partitioned by direction
24 25 26 |
# File 'lib/alsa-rawmidi/device.rb', line 24 def all_by_type @devices ||= get_devices end |