Class: Adequack::Proxy
- Inherits:
-
Object
- Object
- Adequack::Proxy
- Defined in:
- lib/adequack/proxy.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(target, interfaces) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(target, interfaces) ⇒ Proxy
Returns a new instance of Proxy.
4 5 6 7 |
# File 'lib/adequack/proxy.rb', line 4 def initialize(target, interfaces) self.target = target self.interfaces = interfaces end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object (private)
13 14 15 16 |
# File 'lib/adequack/proxy.rb', line 13 def method_missing(name, *args, &block) check_interface_implementation name, args target.send name, *args, &block end |