Module: Cross::Talk::Listener
- Defined in:
- lib/cross-talk/listener.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/cross-talk/listener.rb', line 4 def self.included(base) base.send(:include, InstanceMethods) base.send(:extend, ClassMethods) base.send(:include, Celluloid::Logger) base.send(:extend, Celluloid::Logger) # This makes sure that when we add a new hook at runtime, we rebuild all # of our hooks so that they're up-to-date. base.instance_eval do listen base, :__new_hook, :before do register_hooks! end end end |