Sha256: 562f5af47bdb49894365a3133af8a26a147efe72fb98bd967ef6fc41050f8194

Contents?: true

Size: 277 Bytes

Versions: 27

Compression:

Stored size: 277 Bytes

Contents

class Module
  ###
  # TODO: remove this after 1.9 support is dropped
  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
end

Version data entries

27 entries across 26 versions & 5 rubygems

Version Path
activesupport-4.2.11.3 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.11.2 lib/active_support/core_ext/module/method_transplanting.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/module/method_transplanting.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.11.1 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.11 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.10 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.10.rc1 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.9 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.9.rc2 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.9.rc1 lib/active_support/core_ext/module/method_transplanting.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activesupport-4.2.8/lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.8 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.8.rc1 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.7.1 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.7 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.7.rc1 lib/active_support/core_ext/module/method_transplanting.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.6 lib/active_support/core_ext/module/method_transplanting.rb
activesupport-4.2.6.rc1 lib/active_support/core_ext/module/method_transplanting.rb