Module: MIDIMessage::Constant::Status

Extended by:
Status
Included in:
Status
Defined in:
lib/midi-message/constant.rb

Overview

Shortcuts for dealing with message status

Instance Method Summary collapse

Instance Method Details

#find(status_name) ⇒ String Also known as: []

The value of the Status constant with the name status_name

Parameters:

  • status_name (String)

    The key to use to look up a constant value

Returns:

  • (String)

    The constant value that was looked up



163
164
165
166
# File 'lib/midi-message/constant.rb', line 163

def find(status_name)
  const = Constant.find("Status", status_name)
  const.value unless const.nil?
end