methods_transplantable?()
TODO: remove this after 1.9 support is dropped
# File activesupport/lib/active_support/core_ext/module/method_transplanting.rb, line 4 def methods_transplantable? # :nodoc: x = Module.new { def foo; end # :nodoc: } Module.new { define_method :bar, x.instance_method(:foo) } true rescue TypeError false end