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
29 30 31 |
# File 'lib/alsa-rawmidi/device.rb', line 29 def all all_by_type.values.flatten end |
#all_by_type ⇒ Hash
A hash of devices, partitioned by direction
23 24 25 |
# File 'lib/alsa-rawmidi/device.rb', line 23 def all_by_type @devices ||= get_devices end |