summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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