Class: RawMIDI::Input
- Inherits:
-
Object
show all
- Includes:
- Device
- Defined in:
- lib/rawmidi/input.rb
Instance Attribute Summary
Attributes included from Device
#card, #id, #name
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Device
#close, #closed?, #handle_name, #initialize, #inspect, #open, #open?
Class Method Details
.all ⇒ Object
8
9
10
|
# File 'lib/rawmidi/input.rb', line 8
def self.all
Card.all.flat_map(&:inputs)
end
|
Instance Method Details
12
13
14
|
# File 'lib/rawmidi/input.rb', line 12
def input?
true
end
|
#output? ⇒ Boolean
16
17
18
|
# File 'lib/rawmidi/input.rb', line 16
def output?
false
end
|
#read ⇒ Object
20
21
22
|
# File 'lib/rawmidi/input.rb', line 20
def read
fail NotImplementedError
end
|