Class: Bus::CallableListener
- Inherits:
-
Struct
- Object
- Struct
- Bus::CallableListener
show all
- Defined in:
- lib/bus.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(_, *args) ⇒ Object
40
41
42
|
# File 'lib/bus.rb', line 40
def method_missing(_, *args)
callable.call(*args)
end
|
Instance Method Details
#respond_to?(method_name) ⇒ Boolean
44
45
46
|
# File 'lib/bus.rb', line 44
def respond_to?(method_name)
event == method_name
end
|