Class: RawMIDI::Input

Inherits:
Object
  • 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

.allObject



8
9
10
# File 'lib/rawmidi/input.rb', line 8

def self.all
  Card.all.flat_map(&:inputs)
end

Instance Method Details

#input?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/rawmidi/input.rb', line 12

def input?
  true
end

#output?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/rawmidi/input.rb', line 16

def output?
  false
end

#readObject



20
21
22
# File 'lib/rawmidi/input.rb', line 20

def read
  fail NotImplementedError
end