Sha256: 965822bc19ff90385b625d01164ae36f852f755d5a86a997873ec2881fd27f24
Contents?: true
Size: 484 Bytes
Versions: 14
Compression:
Stored size: 484 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/test_helper') class MethodInvokationTest < Test::Unit::TestCase include RubyProf::Test class Klass def do_something; end def test do_something end do_something_method = instance_method(:do_something) define_method :test_with_method_object do do_something_method.bind(self).call end end def test_method_invocation o = Klass.new o.test o.test_with_method_object end end
Version data entries
14 entries across 14 versions & 1 rubygems