Class: UniMIDI::CoreMIDIAdapter::Device
- Inherits:
-
UniMIDI::CongruousApiDevice
- Object
- UniMIDI::CongruousApiDevice
- UniMIDI::CoreMIDIAdapter::Device
- Defined in:
- lib/unimidi/adapter/ffi-coremidi.rb
Class Method Summary collapse
Methods included from UniMIDI::CongruousApiAdapter::Device::ClassMethods
#[], #all, #all_by_type, #defer_to, #device_class, #each, #find_by_name, #first, #gets, #input_class, #last, #list, #output_class, #populate, #use
Class Method Details
.populate ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/unimidi/adapter/ffi-coremidi.rb', line 22 def self.populate klass = @deference[self].respond_to?(:all_by_type) ? @deference[self] : @device_class @devices = { :input => klass.all_by_type[:source].map { |d| @input_class.new(d) }, :output => klass.all_by_type[:destination].map { |d| @output_class.new(d) } } end |