Module: AlsaRawMIDI::Device
Overview
Functionality common to both inputs and outputs
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#enabled ⇒ Object
(also: #enabled?)
readonly
has the device been initialized?.
-
#id ⇒ Object
readonly
has the device been initialized?.
-
#name ⇒ Object
readonly
has the device been initialized?.
-
#subname ⇒ Object
readonly
has the device been initialized?.
-
#system_id ⇒ Object
readonly
has the device been initialized?.
-
#type ⇒ Object
readonly
has the device been initialized?.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from ClassMethods
all, all_by_type, first, last
Instance Attribute Details
#enabled ⇒ Object (readonly) Also known as: enabled?
has the device been initialized?
62 63 64 |
# File 'lib/alsa-rawmidi/device.rb', line 62 def enabled @enabled end |
#id ⇒ Object
has the device been initialized?
62 63 64 |
# File 'lib/alsa-rawmidi/device.rb', line 62 def id @id end |
#name ⇒ Object (readonly)
has the device been initialized?
62 63 64 |
# File 'lib/alsa-rawmidi/device.rb', line 62 def name @name end |
#subname ⇒ Object (readonly)
has the device been initialized?
62 63 64 |
# File 'lib/alsa-rawmidi/device.rb', line 62 def subname @subname end |
#system_id ⇒ Object (readonly)
has the device been initialized?
62 63 64 |
# File 'lib/alsa-rawmidi/device.rb', line 62 def system_id @system_id end |
#type ⇒ Object (readonly)
has the device been initialized?
62 63 64 |
# File 'lib/alsa-rawmidi/device.rb', line 62 def type @type end |
Class Method Details
.included(base) ⇒ Object
71 72 73 |
# File 'lib/alsa-rawmidi/device.rb', line 71 def self.included(base) base.send(:extend, ClassMethods) end |
Instance Method Details
#initialize(options = {}) ⇒ Object
80 81 82 83 84 85 86 87 |
# File 'lib/alsa-rawmidi/device.rb', line 80 def initialize( = {}) @id = [:id] @name = [:name] @subname = [:subname] @system_id = [:system_id] @type = get_type @enabled = false end |