Class: Lita::Handlers::Help
- Inherits:
-
Lita::Handler
- Object
- Lita::Handler
- Lita::Handlers::Help
- Defined in:
- lib/lita/handlers/help.rb
Overview
Provides online help about Lita commands for users.
Instance Method Summary collapse
-
#help(response) ⇒ void
Outputs help information about Lita commands.
Methods included from Lita::Handler::ChatRouter
#dispatch, #dispatch_to_route, extended, #route, #routes
Methods included from Lita::Handler::HTTPRouter
Methods included from Lita::Handler::EventRouter
#event_subscriptions_for, extended, #on, #trigger
Instance Method Details
#help(response) ⇒ void
This method returns an undefined value.
Outputs help information about Lita commands.
14 15 16 17 18 |
# File 'lib/lita/handlers/help.rb', line 14 def help(response) output = build_help(response) output = filter_help(output, response) response.reply_privately output.join("\n") end |