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:
parent
42de5af133
commit
72a6794070
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue