1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

reverted (commit miss) [ruby-dev:26141]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ocean 2005-05-12 02:24:41 +00:00
parent 42de5af133
commit 72a6794070

View file

@ -16,11 +16,11 @@
# ...
# end
class Delegator<BasicObject
class Delegator
def initialize(obj)
preserved = ::BasicObject.public_instance_methods(false)
::Kernel::p preserved
preserved = ::Kernel.public_instance_methods(false)
preserved -= ["to_s","to_a","inspect","==","=~","==="]
for t in self.class.ancestors
preserved |= t.public_instance_methods(false)
preserved |= t.private_instance_methods(false)