Module: MIDIMessage::Constant::Status

Defined in:
lib/midi-message/constant.rb

Overview

Shortcuts for dealing with message status

Class Method Summary collapse

Class Method Details

.[](status_name) ⇒ String

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



119
120
121
122
# File 'lib/midi-message/constant.rb', line 119

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