explicitly using #inspect for the ls command

This commit is contained in:
John Mair 2011-06-09 02:48:48 +12:00
parent 21a143ebcf
commit f23bb4ba8a
1 changed files with 2 additions and 2 deletions

View File

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