Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.2.9) is shown here.
methods_transplantable?()
public
TODO: remove this after 1.9 support is dropped
Show source
def methods_transplantable?
x = Module.new {
def foo; end
}
Module.new { define_method :bar, x.instance_method(:foo) }
true
rescue TypeError
false
end