--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: see if each plugin handles <em>method</em>, and if so, call it, passing <em>m</em> as a parameter (if present). BotModules are called in order of priority from lowest to highest.
- !ruby/struct:SM::Flow::P 
  body: "If the passed <em>m</em> is a BasicUserMessage and is marked as #ignored?, it will only be delegated to plugins with negative priority. Conversely, if it's a fake message (see BotModule#fake_message), it will only be delegated to plugins with positive priority."
- !ruby/struct:SM::Flow::P 
  body: "Note that <em>m</em> can also be an exploded Array, but in this case the last element of it cannot be a Hash, or it will be interpreted as the options Hash for delegate itself. The last element can be a subclass of a Hash, though. To be on the safe side, you can add an empty Hash as last parameter for delegate when calling it with an exploded Array:"
- !ruby/struct:SM::Flow::VERB 
  body: "  @bot.plugins.delegate(method, *(args.push Hash.new))\n"
- !ruby/struct:SM::Flow::P 
  body: "Currently supported options are the following:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: ":above :"
    body: if specified, the delegation will only consider plugins with a priority higher than the specified value
  - !ruby/struct:SM::Flow::LI 
    label: ":below :"
    body: if specified, the delegation will only consider plugins with a priority lower than the specified value
  type: :NOTE
full_name: Irc::Bot::Plugins::PluginManagerClass#delegate
is_singleton: false
name: delegate
params: " delegate</span><span class=\"method-args\">(method, m, opts={})</span>\n\
  <span class=\"method-name\">delegate</span><span class=\"method-args\">(method, opts={})\n"
visibility: public
