Permalink
Browse files

Merge pull request #14 from enebo/variables_are_symbols_19

In 1.9 variables are symbols and not strings.  Call to_s to make it 1.9 ...
  • Loading branch information...
2 parents fff30f8 + e103a16 commit d47b652ab8cb0090382ef7051c08ef02f0ebc343 @jfirebaugh jfirebaugh committed Dec 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cli/ruby-debug/commands/variables.rb
@@ -4,10 +4,10 @@ def var_list(ary, b = get_binding)
ary.sort!
for v in ary
begin
- s = debug_eval(v, b).inspect
+ s = debug_eval(v.to_s, b).inspect
rescue
begin
- s = debug_eval(v, b).to_s
+ s = debug_eval(v.to_s, b).to_s
rescue
s = "*Error in evaluation*"
end

0 comments on commit d47b652

Please sign in to comment.