class Lita::Robot
Public Instance Methods
APPLY_CRUISECONTROL_FOR_COOL(*strings)
click to toggle source
# File lib/lita-CAPSLOCKDAY.rb, line 20 def APPLY_CRUISECONTROL_FOR_COOL(*strings) strings.map! { |s| s.upcase } end
IT_IS_CAPSLOCKDAY?()
click to toggle source
# File lib/lita-CAPSLOCKDAY.rb, line 11 def IT_IS_CAPSLOCKDAY? now = Time.now if (now.month == 6 && now.day == 28) or (now.month == 10 && now.day == 22) return true end return false end
send_messages(target, *strings)
click to toggle source
# File lib/lita-CAPSLOCKDAY.rb, line 24 def send_messages(target, *strings) *strings = APPLY_CRUISECONTROL_FOR_COOL(*strings) if IT_IS_CAPSLOCKDAY? orig_send_messages(target, *strings) end
Also aliased as: orig_send_messages