From 062351e6bb492d206c305840f4a69c70efcb5131 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 21 May 2003 08:48:05 +0000 Subject: * error.c (syserr_initialize): prohibit specifying errno for subclasses of SystemCallError. in addition, if initialize is called for SystenCallError instance, its class be changed. [ruby-dev:20257] * gc.c (run_final): to protect thread context switch, finalizers are wrapped in DEFER_INTS/ENABLE_INTS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/delegate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/delegate.rb b/lib/delegate.rb index 88d2256a2f..651164e274 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -77,7 +77,7 @@ SimpleDelegater = SimpleDelegator def DelegateClass(superclass) klass = Class.new methods = superclass.public_instance_methods(true) - methods -= ::Kernel.public_instance_methods + methods -= ::Kernel.public_instance_methods(false) methods |= ["to_s","to_a","inspect","==","=~","==="] klass.module_eval <<-EOS def initialize(obj) -- cgit v1.2.3