lib/ruby-debug/commands/variables.rb in ruby-debug-ide-0.1.4 vs lib/ruby-debug/commands/variables.rb in ruby-debug-ide-0.1.5
- old
+ new
@@ -67,12 +67,12 @@
end
else
obj = debug_eval(@match.post_match)
end
return unless obj
- if (obj.class.name == "Array") then
+ if (obj.is_a?(Array)) then
print_array(obj)
- elsif (obj.class.name == "Hash") then
+ elsif (obj.is_a?(Hash)) then
print_hash(obj)
else
b = obj.instance_eval{binding()}
print_variables(obj.instance_variables, 'instance') do |var|
debug_eval(var, b)