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
Родитель 42de5af133
Коммит 72a6794070
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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)