Class: Voicemeeter::Midi
- Inherits:
-
Object
- Object
- Voicemeeter::Midi
- Defined in:
- lib/voicemeeter/midi.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
readonly
Returns the value of attribute cache.
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#current ⇒ Object
Returns the value of attribute current.
Instance Method Summary collapse
- #get(key) ⇒ Object
-
#initialize ⇒ Midi
constructor
A new instance of Midi.
Constructor Details
#initialize ⇒ Midi
Returns a new instance of Midi.
6 7 8 |
# File 'lib/voicemeeter/midi.rb', line 6 def initialize @cache = {} end |
Instance Attribute Details
#cache ⇒ Object (readonly)
Returns the value of attribute cache.
4 5 6 |
# File 'lib/voicemeeter/midi.rb', line 4 def cache @cache end |
#channel ⇒ Object
Returns the value of attribute channel.
3 4 5 |
# File 'lib/voicemeeter/midi.rb', line 3 def channel @channel end |
#current ⇒ Object
Returns the value of attribute current.
3 4 5 |
# File 'lib/voicemeeter/midi.rb', line 3 def current @current end |
Instance Method Details
#get(key) ⇒ Object
10 11 12 |
# File 'lib/voicemeeter/midi.rb', line 10 def get(key) cache[key] end |