Method: MotherBrain::Plugin#command

Defined in:
lib/mb/plugin.rb

#command(name) ⇒ MB::Command?

Return a command from the plugins list of commands.

Parameters:

  • name (#to_s)

    name of the command to find and return

Returns:



134
135
136
# File 'lib/mb/plugin.rb', line 134

def command(name)
  commands.find { |command| command.name == name.to_s }
end