Class: Lita::Handlers::Confirmation
- Inherits:
-
Handler
- Object
- Handler
- Lita::Handlers::Confirmation
- Defined in:
- lib/lita/handlers/confirmation.rb
Instance Method Summary collapse
Instance Method Details
#confirm(response) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/lita/handlers/confirmation.rb', line 8 def confirm(response) code = response.matches[0][0] command = Extensions::Confirmation::UnconfirmedCommand.find(code) if command call_command(command, code, response) else response.reply(t("invalid_code", code: code)) end end |