summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-02 15:32:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-02 15:32:45 +0000
commit55af6c2f96ca1052d779f6bb46d72e48f250bc73 (patch)
tree77d8bdb0a26aa9f6e4a507d7f241fb087f67f4d6
parent3a76a401967aca5a5386e980f26a7bd925da64b6 (diff)
* lib/delegate.rb (Delegator::initialize): use Object#class
instead of deprecated Object#type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--lib/delegate.rb4
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 5c6a0e440c..ec307643c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 3 00:27:26 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * lib/delegate.rb (Delegator::initialize): use Object#class
+ instead of deprecated Object#type.
+
Wed Oct 2 23:32:48 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* configure.in (RUBY_CHECK_IO_NEED_FLUSH): check whether fflush()
@@ -41,7 +46,7 @@ Wed Oct 2 10:59:29 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
* gc.c (gc_sweep): free unused heap page to reduce process size if
possible.
- * object.c (rb_obj_type): deperecated Object#type; use Object#class.
+ * object.c (rb_obj_type): depercated Object#type; use Object#class.
Tue Oct 1 23:48:32 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
diff --git a/lib/delegate.rb b/lib/delegate.rb
index 8dd3395931..afd6a2abe8 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -21,7 +21,7 @@ class Delegator
def initialize(obj)
preserved = ::Kernel.instance_methods
preserved -= ["to_s","to_a","inspect","==","=~","==="]
- for t in self.type.ancestors
+ for t in self.class.ancestors
preserved |= t.instance_methods
preserved |= t.private_instance_methods
preserved |= t.protected_instance_methods
@@ -111,7 +111,7 @@ if __FILE__ == $0
end
ary = ExtArray.new
- p ary.type
+ p ary.class
ary.push 25
p ary