From: dblack@... Date: 2006-12-11T07:14:55+09:00 Subject: Re: Monkey Patching a method and back Hi -- On Mon, 11 Dec 2006, James Edward Gray II wrote: > On Dec 10, 2006, at 4:05 PM, S. Robert James wrote: > >> Will this be OK even if patched and unpatched multiple times? > > You probably want to use something more robust for that. You need to make > sure you only alias the method is a saved version doesn't already exist. In case it got lost in my reply to my reply: have a look at: http://raa.ruby-lang.org/project/import_module/ David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org