From: Jamis Buck Date: 2003-12-16T13:23:09+09:00 Subject: Re: Copying methods from one class to another T. Onoma wrote: >Is there any way to copy a method from one class to another? > > > I'd like to know the answer to this one, too, though I suspect there isn't going to be a way. If such a feature existed, then in order to be safe in copying a method from one class to another, there should also be a feature that allowed you to query which methods a method depends on, and that can be a tough question to answer (perhaps even impossible, though I couldn't say that with confidence). -- Jamis Buck jgb3@email.byu.edu ruby -h | ruby -e 'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a << r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'