Module: AptControl::Bot::ClassMethods

Included in:
AptControl::Bot
Defined in:
lib/apt_control/bot.rb

Instance Method Summary collapse

Instance Method Details

#handlersObject



25
26
27
# File 'lib/apt_control/bot.rb', line 25

def handlers
  @handlers ||= []
end

#method_added(meth) ⇒ Object



18
19
20
21
22
23
# File 'lib/apt_control/bot.rb', line 18

def method_added(meth)
  super
  if match = /^handle_(.+)$/.match(meth.to_s)
    handlers << match[1]
  end
end