Module: MIDICommunications::Platform Private

Extended by:
Platform
Included in:
Platform
Defined in:
lib/midi-communications/platform.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Handles platform detection and adapter loading.

Automatically detects the current platform (macOS, Linux, Windows, JRuby) and loads the appropriate low-level MIDI adapter.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.bootstrapvoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Loads the correct MIDI adapter for the current platform.

Called automatically when the library is required. Detects the platform and loads the corresponding adapter gem.



17
18
19
20
# File 'lib/midi-communications/platform.rb', line 17

def bootstrap
  require("midi-communications/adapter/#{platform_lib}")
  Loader.use(platform_module::Loader)
end

Instance Method Details

#bootstrapvoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Loads the correct MIDI adapter for the current platform.

Called automatically when the library is required. Detects the platform and loads the corresponding adapter gem.



17
18
19
20
# File 'lib/midi-communications/platform.rb', line 17

def bootstrap
  require("midi-communications/adapter/#{platform_lib}")
  Loader.use(platform_module::Loader)
end