1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2008-08-10 00:35:14 +00:00
parent b2718506ad
commit 50c241002a
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Aug 10 09:35:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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 <akr@fsij.org> Sun Aug 10 09:22:14 2008 Tanaka Akira <akr@fsij.org>
* transcode.c (transcode_char_start): refactored to remove readlen * transcode.c (transcode_char_start): refactored to remove readlen

View file

@ -308,7 +308,7 @@ module IRB
def inspect def inspect
ary = [] ary = []
for iv in instance_variables for iv in instance_variables
case iv case (iv = iv.to_s)
when "@signal_status" when "@signal_status"
ary.push format("%s=:%s", iv, @signal_status.id2name) ary.push format("%s=:%s", iv, @signal_status.id2name)
when "@context" when "@context"