Class: Adhearsion::Events::Handler
- Inherits:
-
Object
- Object
- Adhearsion::Events::Handler
show all
- Includes:
- HasGuardedHandlers, Singleton
- Defined in:
- lib/adhearsion/events.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
21
22
23
|
# File 'lib/adhearsion/events.rb', line 21
def method_missing(method_name, *args, &block)
register_handler method_name, *args, &block
end
|
Instance Method Details
#call_handler(handler, guards, event) ⇒ Object
14
15
16
17
|
# File 'lib/adhearsion/events.rb', line 14
def call_handler(handler, guards, event)
super
throw :pass
end
|
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
25
26
27
|
# File 'lib/adhearsion/events.rb', line 25
def respond_to_missing?(method_name, include_private = false)
true
end
|