зеркало из https://github.com/github/ruby.git
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:
Родитель
42de5af133
Коммит
72a6794070
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче