From: Austin Ziegler Date: 2005-04-23T02:39:39+09:00 Subject: Re: Nuby Question - How do you assign a function itself? On 4/22/05, Sam Kong wrote: > What I want is to assign the function to g so that I can call g instead > of f. > > All I could find was > alias :g :f You can't. You can, however do: g = method(:f) You can't just do g, though, because g is now a method object. You need to do either g.call or g[]. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca