summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-12 02:24:41 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-12 02:24:41 +0000
commit72a6794070964789beaaec190dff8f7aab7875ea (patch)
tree650df756aec8d8d67cfe97338720178eaab20a2e /lib
parent42de5af133bdbd0c466b902b86ffde45634b6c31 (diff)
reverted (commit miss) [ruby-dev:26141]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/delegate.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb
index b2e86de6a9..bc200d212b 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -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)