From: Martin Krauskopf Date: 2007-08-15T21:08:51+09:00 Subject: Re: ruby-debug: 1) @-sign, 2) v i Axel wrote: > Another thing, how does: > > v[ar] i[nstance] > > work? - When using the exampel of Brian Donovan, slightly modified: > > class My > def fib(n) > @fib_cache ||= [1, 1] > @fib_cache[n] ||= fib(n-1) + fib(n-2) > end > end > > my = My.new > puts my.fib(20) > > and set a breakpoint, continue and enter "v i My", I do not get > anything. "v i " list instance variables of the E.g. try to add one line at the end of you program, e.g. sleep 0.1, and put breakpoint on it. Then you get the array of fibonacci numbers @fib_cache listed after "v i my". "v i " uses object.instance_variables and there are not any on My class, so you got nothing after "v i My" m.