summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-24 14:50:10 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-24 14:50:10 +0000
commit2957e520d4bf6502f66e5dbc78df67912b7738e5 (patch)
treed8e97923c11187341cdef995be0286415be18b43
parent9b9ce3524039f66e3f1fc536f505bd1fbf0a88b6 (diff)
downloadruby-2957e520d4bf6502f66e5dbc78df67912b7738e5.tar.gz
ruby-2957e520d4bf6502f66e5dbc78df67912b7738e5.tar.xz
ruby-2957e520d4bf6502f66e5dbc78df67912b7738e5.zip
* lib/irb/completion.rb: Use Object#class rather than Object#type.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/irb/completion.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d32fed4a9..dcc220e20 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Dec 24 23:49:16 2002 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/irb/completion.rb: Use Object#class rather than Object#type.
+
Tue Dec 24 23:37:40 2002 TADA Tadashi <sho@spc.gr.jp>
* lib/cgi.rb (Cookie::parse), lib/cgi-lib.rb (initialize): Do not
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
index 448650e8e..67a0e5c7f 100644
--- a/lib/irb/completion.rb
+++ b/lib/irb/completion.rb
@@ -122,7 +122,7 @@ module IRB
gv = eval "global_variables", bind
lv = eval "local_variables", bind
- cv = eval "self.type.constants", bind
+ cv = eval "self.class.constants", bind
if (gv | lv | cv).include?(receiver)
# foo.func and foo is local var.