Class: MIDIEvents::Constant::Map
- Inherits:
-
Object
- Object
- MIDIEvents::Constant::Map
- Defined in:
- lib/midi-events/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.
122 123 124 125 |
# File 'lib/midi-events/constant.rb', line 122 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
118 119 120 |
# File 'lib/midi-events/constant.rb', line 118 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
118 119 120 |
# File 'lib/midi-events/constant.rb', line 118 def value @value end |