lib/celluloid/proxies/abstract_proxy.rb in celluloid-0.14.1 vs lib/celluloid/proxies/abstract_proxy.rb in celluloid-0.15.0.pre

- old
+ new

@@ -1,7 +1,10 @@ module Celluloid # Base class of all Celluloid proxies class AbstractProxy < BasicObject + # Used for reflecting on proxy objects themselves + def __class__; AbstractProxy; end + # Needed for storing proxies in data structures needed = [:object_id, :__id__, :hash] - instance_methods if needed.any? include ::Kernel.dup.module_eval { undef_method(*(instance_methods - needed))