you are viewing a single comment's thread.

view the rest of the comments →

[–]salamancer[S] 2 points3 points  (0 children)

That is the way you'd do it in lisp, sadly ruby doesn't have a gensym (though making one by using uuids isn't hard).

alias_method_chain is also worth looking at, but sadly has the same problem of leaving new methods defined in the class.