lib/celluloid/proxies/abstract_proxy.rb in celluloid-0.13.0 vs lib/celluloid/proxies/abstract_proxy.rb in celluloid-0.14.0.pre
- old
+ new
@@ -3,10 +3,10 @@
class AbstractProxy < BasicObject
# 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)
+ undef_method(*(instance_methods - needed))
self
}
# rubinius bug? These methods disappear when we include hacked kernel
define_method :==, ::BasicObject.instance_method(:==) unless instance_methods.include?(:==)