From f23bb4ba8ae86448f14f1cb6ce21d5130a84b65a Mon Sep 17 00:00:00 2001 From: John Mair Date: Thu, 9 Jun 2011 02:48:48 +1200 Subject: [PATCH] explicitly using #inspect for the ls command --- lib/pry/default_commands/ls.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pry/default_commands/ls.rb b/lib/pry/default_commands/ls.rb index f94dab22..3a05630c 100644 --- a/lib/pry/default_commands/ls.rb +++ b/lib/pry/default_commands/ls.rb @@ -180,9 +180,9 @@ Shows local and instance variables by default. list = list.grep(options[:grep]) if list list.uniq! if list if Pry.color - text << CodeRay.scan(Pry.view(list), :ruby).term + "\n" + text << CodeRay.scan(list.inspect, :ruby).term + "\n" else - text << Pry.view(list) + "\n" + text << list.inspect + "\n" end if !options[:f] stagger_output(text)