Object
Method handles that route through an actor proxy
# File lib/celluloid/method.rb, line 5 def initialize(proxy, name) raise NameError, "undefined method `#{name}'" unless proxy.respond_to? name @proxy, @name = proxy, name @klass = @proxy.class end
# File lib/celluloid/method.rb, line 12 def arity @proxy.method_missing(:method, @name).arity end
# File lib/celluloid/method.rb, line 16 def call(*args, &block) @proxy.__send__(@name, *args, &block) end
# File lib/celluloid/method.rb, line 20 def inspect "#<Celluloid::Method #{@klass}##{@name}>" end
[Validate]
Generated with the Darkfish Rdoc Generator 2.