Class: BoPeep::Host::Callbacks::Proxy
- Inherits:
-
Object
- Object
- BoPeep::Host::Callbacks::Proxy
- Extended by:
- Forwardable
- Defined in:
- lib/bopeep.rb
Instance Method Summary collapse
-
#initialize(callbacks) ⇒ Proxy
constructor
A new instance of Proxy.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize(callbacks) ⇒ Proxy
Returns a new instance of Proxy.
949 950 951 |
# File 'lib/bopeep.rb', line 949 def initialize(callbacks) @callbacks = callbacks end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
953 954 955 956 957 958 959 |
# File 'lib/bopeep.rb', line 953 def method_missing(name, *args, &block) if @callbacks.respond_to?(name) @callbacks.send(name, *args, &block) else super end end |