From: Roger Pack Date: 2009-01-20T04:04:02+09:00 Subject: [ruby-core:21436] Re: Proposal: Module#copy_method ------=_Part_16886_6733257.1232391929570 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, Jan 18, 2009 at 12:26 AM, Yehuda Katz wrote: > I'd like it to be possible to copy methods from one module to another. The > rationale is that this feature would make it possible to modify existing > methods without being forced to resort to aliasing. Here's an implementation > that works on 1.8 and 1.9: You can somewhat copy methods from one module to another [in a somewhat round about way] currently, or am I off? http://eigenclass.org/hiki/Rename+and+reject+methods+from+included+modules http://betterlogic.com/roger/?p=537 -=r ------=_Part_16886_6733257.1232391929570 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
On Sun, Jan 18, 2009 at 12:26 AM, Yehuda Katz <wycats@gmail.com> wrote:
I'd like it to be possible to copy methods from one module to another. The rationale is that this feature would make it possible to modify existing methods without being forced to resort to aliasing. Here's an implementation that works on 1.8 and 1.9:
 
You can somewhat copy methods from one module to another [in a somewhat round about way] currently, or am I off?
 
http://eigenclass.org/hiki/Rename+and+reject+methods+from+included+modules
http://betterlogic.com/roger/?p=537
 
-=r
------=_Part_16886_6733257.1232391929570--