On Sat, 16 Sep 2006 04:58:12 +0900, Ryan Davis wrote: > On Sep 15, 2006, at 11:00 AM, Dave Rose wrote: > >> i'm writing a method within the Akill class that cascades down 2 sql >> stmts inside some if and when stmts....but i get this when i added the >> last branch of if stmts: what happened note : ALL 'end' stmts are >> properly matched >>>> class Akill >>>> def getusd(prem,cust,serv,scat,readit) >>>> cursor=@@conn.exec("<<a working sql stmt here>>>") >>>> k=Array.new >>>> while r=cursor.fetch() and k.size<3 >>>> k.push(r) >>>> end >>>> cursor.close >>>> if k.size>0 >>>> k.first >>>> else >> ?> cursor=@@conn.exec("<<a working sql stmt here>>>") >>>> k=Array.new >>>> while r=cursor.fetch() and k.size<3 >>>> k.push(r) >>>> end >>>> cursor.close >>>> if k.size>0 >>>> k.first >>>> else >> ?> #get defaults of kwd=0,kvar=700,kwh=1500 >> ?> #else nil >> ?> case scat >>>> when scat=='KWH' 1500 >>>> >> Display all 459 possibilities? (y or n) > > I can't even tell what you are trying to do / write. It looks like > "freak out" in your world means "respond with everything when I hit > tab in a place without context" which is exactly what it should do. > If not, I suggest turning off tab completion first and trying again. How do you turn off tab completion in IRB? -- Ken Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/