From 50c241002a8d26d6e5ad376e286c1dff4471df10 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 10 Aug 2008 00:35:14 +0000 Subject: [PATCH] * lib/irb.rb (IRB::Irb#inspect): instance_variables returns symbols instead of strings now. [ruby-dev:34930] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/irb.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6b497c9e37..03fd1aa9a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Aug 10 09:35:12 2008 Nobuyoshi Nakada + + * lib/irb.rb (IRB::Irb#inspect): instance_variables returns symbols + instead of strings now. [ruby-dev:34930] + Sun Aug 10 09:22:14 2008 Tanaka Akira * transcode.c (transcode_char_start): refactored to remove readlen diff --git a/lib/irb.rb b/lib/irb.rb index d700d004a0..7fe3d7dc51 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -308,7 +308,7 @@ module IRB def inspect ary = [] for iv in instance_variables - case iv + case (iv = iv.to_s) when "@signal_status" ary.push format("%s=:%s", iv, @signal_status.id2name) when "@context"