* 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
Родитель b2718506ad
Коммит 50c241002a
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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"