Class: Tusk::Observable::DRb::Proxy

Inherits:
Object
  • Object
show all
Includes:
DRb::DRbUndumped
Defined in:
lib/tusk/observable/drb.rb

Overview

:nodoc:

Instance Method Summary collapse

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