class Lita::Handlers::Vaxcalc
Public Instance Methods
double_number(n)
click to toggle source
# File lib/lita/handlers/vaxcalc.rb, line 18 def double_number(n) n + n end
respond_with_double(response)
click to toggle source
# File lib/lita/handlers/vaxcalc.rb, line 22 def respond_with_double(response) # Read up on the Ruby MatchData class for more options n = response.match_data.captures.first response.reply "#{n}" end
respond_with_exemptions(response)
click to toggle source
# File lib/lita/handlers/vaxcalc.rb, line 28 def respond_with_exemptions(response) response.reply "Medical and religious" end