Class: Mobb::Application

Inherits:
Base
  • Object
show all
Defined in:
lib/mobb/base.rb,
lib/mobb/main.rb

Constant Summary

Constants inherited from Base

Base::CALLERS_TO_IGNORE, Base::DEFAULT_CONDITIONS

Instance Attribute Summary

Attributes inherited from Base

#matched

Class Method Summary collapse

Methods inherited from Base

add_filter, after, before, #call, #call!, #chain, clear, compile, compile!, compile_cron, condition, cron, dest_condition, dest_to, development?, disable, #dispatch!, enable, event, #event_eval, extensions, #filter!, generate_method, #handle_event, helpers, include_myself, #invoke, invoke_hook, #pass, #process_event, production?, quit!, react_to_bot, receive, reply_to_me, reset!, run!, running?, #say_nothing, set, #settings, settings, silent, test?, trigger

Class Method Details

.register(*extensions, &block) ⇒ Object



501
502
503
504
505
# File 'lib/mobb/base.rb', line 501

def self.register(*extensions, &block)
  added_methods = extensions.flat_map(&:public_instance_methods)
  Delegator.delegate(*added_methods)
  super(*extensions, &block)
end