Class: Tusk::Observable::DRb::Proxy
- Inherits:
-
Object
- Object
- Tusk::Observable::DRb::Proxy
- Includes:
- DRb::DRbUndumped
- Defined in:
- lib/tusk/observable/drb.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(d, func) ⇒ Proxy
constructor
A new instance of Proxy.
- #notify(args) ⇒ Object
Constructor Details
#initialize(d, func) ⇒ Proxy
Returns a new instance of Proxy.
83 84 85 86 |
# File 'lib/tusk/observable/drb.rb', line 83 def initialize d, func @delegate = d @func = func end |
Instance Method Details
#notify(args) ⇒ Object
88 89 90 |
# File 'lib/tusk/observable/drb.rb', line 88 def notify args @delegate.send(@func, *args) end |