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.
129 130 131 132 |
# File 'lib/midi-message/constant.rb', line 129 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
125 126 127 |
# File 'lib/midi-message/constant.rb', line 125 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
125 126 127 |
# File 'lib/midi-message/constant.rb', line 125 def value @value end |