Class: RestCore::Future::Proxy
- Inherits:
- BasicObject
- Defined in:
- lib/rest-core/engine/future/future.rb
Instance Method Summary (collapse)
-
- (Proxy) initialize(future, target)
constructor
A new instance of Proxy.
- - (Object) method_missing(msg, *args, &block)
Constructor Details
- (Proxy) initialize(future, target)
A new instance of Proxy
8 9 10 |
# File 'lib/rest-core/engine/future/future.rb', line 8 def initialize future, target @future, @target = future, target end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
- (Object) method_missing(msg, *args, &block)
12 13 14 |
# File 'lib/rest-core/engine/future/future.rb', line 12 def method_missing msg, *args, &block @future.yield[@target].__send__(msg, *args, &block) end |