From: nahi Date: 2012-03-18T18:57:00+09:00 Subject: [ruby-core:43435] [ruby-trunk - Feature #4254][Rejected] Allow method transplanting Issue #4254 has been updated by nahi. Status changed from Open to Rejected Assignee set to matz ---------------------------------------- Feature #4254: Allow method transplanting https://bugs.ruby-lang.org/issues/4254#change-24902 Author: zimbatm Status: Rejected Priority: Normal Assignee: matz Category: core Target version: 2.0.0 =begin Is there a technical reason to not allow re-binding a method from one module to any other module ? module M def foo; "foo"; end end module N; end N.send(:define_method, :foo, M.instance_method(:foo)) #=> should not raise It's like monkey-patching. Powerful, dangerous, but also really useful. It could allow different variations of method_wrap or alias_method_chain that are not possible right now. =end -- http://bugs.ruby-lang.org/