From: James Edward Gray II Date: 2006-01-24T06:28:34+09:00 Subject: Re: Hungarian Case variable names. On Jan 23, 2006, at 3:20 PM, Kevin Olbrich wrote: > James Gray wrote: > >> How are you going to assign a variable (iText = ...), and then >> convince Ruby to treat it as a method (to trigger method_missing())? >> > > I just tested this with a quick one and found that if you do something > like > > object.iTest=5 > > Then method_missing will get 'iTest=' as the symbol, and 'n' as an > argument. Then it's a simple matter of trimming the 'i' off the front > and returning the result of '(test=n).to_i'. Gotcha. I thought you were talking about using local variables. I understand now. Thanks. James Edward Gray II