Module: UniMIDI::Command
Overview
Module for command-line use of UniMIDI. Used by the bin/unimidi script
Instance Method Summary collapse
-
#exec(command, options = {}) ⇒ Boolean
Execute a command.
Instance Method Details
#exec(command, options = {}) ⇒ Boolean
Execute a command
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/unimidi/command.rb', line 12 def exec(command, = {}) if [:l, :list, :list_devices].include?(command) puts "input:" Input.list puts "output:" Output.list true else raise "Command #{command.to_s} not found" end end |