Method: MMTop::TermInput#find_command

Defined in:
lib/mmtop/term_input.rb

#find_command(cmd) ⇒ Object



17
18
19
# File 'lib/mmtop/term_input.rb', line 17

def find_command(cmd)
  MMTop::Command.commands.detect { |c| c.matches?(cmd) }
end