Austin Ziegler
4/22/2005 5:40:00 PM
On 4/22/05, Sam Kong <sam.s.kong@gmail.com> 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