From: Daniel Berger Date: 2005-09-08T02:52:41+09:00 Subject: Re: Selective mixins; who can improve on this? Paul Brannan wrote: > Here's my solution: > > require 'nodewrap' > > class Module > def use(mod, *methods) > methods.each do |method| > sym = method.to_sym > body = mod.instance_method(sym).body > add_method(sym, body, 0) > end > end > end This doesn't work for me. There appears to be no UnboundMethod#body method, even after requiring nodewrap. What's missing? Regards, Dan