Class: MIDIMessage::Constant::Map
- Inherits:
-
Object
- Object
- MIDIMessage::Constant::Map
- Defined in:
- lib/midi-message/constant.rb
Overview
The mapping of a constant key to its value eg “Note On” => 0x9
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Map
constructor
A new instance of Map.
Constructor Details
#initialize(key, value) ⇒ Map
Returns a new instance of Map.
87 88 89 90 |
# File 'lib/midi-message/constant.rb', line 87 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
83 84 85 |
# File 'lib/midi-message/constant.rb', line 83 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
83 84 85 |
# File 'lib/midi-message/constant.rb', line 83 def value @value end |