diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-21 08:48:05 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-21 08:48:05 +0000 |
commit | c976c2a75215645685c1093d5931e490603f4dd2 (patch) | |
tree | 7573699c85deee5831cc5538b2f53ce47ed91011 /lib | |
parent | 2aac482b98ba8bf60fda892a802fd34ce85cc56e (diff) | |
download | ruby-c976c2a75215645685c1093d5931e490603f4dd2.tar.gz ruby-c976c2a75215645685c1093d5931e490603f4dd2.tar.xz ruby-c976c2a75215645685c1093d5931e490603f4dd2.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@3839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/delegate.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb index 88d2256a2..651164e27 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) |