You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/celluloid/files/celluloid-0.16.0-call-priva...

20 lines
765 B

commit 092ce58aa8713f387ae3d0467b6d8029cf2765cd
Author: Jonathan <chapmajs@gmail.com>
Date: Sun Oct 19 22:05:26 2014 -0400
Allowing calls to private_methods
diff --git a/lib/celluloid/proxies/abstract_proxy.rb b/lib/celluloid/proxies/abstract_proxy.rb
index 6a79acb..2db7a8e 100644
--- a/lib/celluloid/proxies/abstract_proxy.rb
+++ b/lib/celluloid/proxies/abstract_proxy.rb
@@ -5,7 +5,7 @@ module Celluloid
def __class__; AbstractProxy; end
# Needed for storing proxies in data structures
- needed = [:object_id, :__id__, :hash] - instance_methods
+ needed = [:object_id, :__id__, :hash, :private_methods] - instance_methods
if needed.any?
include ::Kernel.dup.module_eval {
undef_method(*(instance_methods - needed))