Class: Lita::Handlers::ShouldI
- Inherits:
-
Handler
- Object
- Handler
- Lita::Handlers::ShouldI
- Defined in:
- lib/lita/handlers/should_i.rb
Instance Method Summary collapse
Instance Method Details
#should_i(response) ⇒ Object
8 9 10 11 |
# File 'lib/lita/handlers/should_i.rb', line 8 def should_i(response) option = build_response response.matches.first response.reply "You should #{option}." end |