class Lita::Handlers::Bus
Public Instance Methods
toss(response)
click to toggle source
# File lib/lita/handlers/bus.rb, line 10 def toss(response) tossee = /^(?:throw|toss)\s+(.+)\s+under (the|a) bus/i.match(response.message.body)[1] response.reply(render_template("bus", tosser: response.message.source.user.name, tossee: tossee)) end