From: usa@... Date: 2015-11-18T11:17:59+00:00 Subject: [ruby-core:71547] [Ruby trunk - Bug #11492] TracePoint API report extra return for defined method Issue #11492 has been updated by Usaku NAKAMURA. Backport changed from 2.0.0: DONTNEED, 2.1: REQUIRED, 2.2: DONE to 2.0.0: DONTNEED, 2.1: DONE, 2.2: DONE ruby_2_1 r52639 merged revision(s) 51713. ---------------------------------------- Bug #11492: TracePoint API report extra return for defined method https://bugs.ruby-lang.org/issues/11492#change-54923 * Author: Oleg Sukhodolsky * Status: Closed * Priority: Normal * Assignee: Koichi Sasada * ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14] * Backport: 2.0.0: DONTNEED, 2.1: DONE, 2.2: DONE ---------------------------------------- ~~~ruby class A define_method "method1" do # puts "#{method_name}(#{arg})" return 1 end end a = A.new TracePoint.new do |tp| printf "%8s %13s %s:%-2d\n", tp.event, tp.method_id, tp.path, tp.lineno end.enable do a.method1 end ~~~ -- https://bugs.ruby-lang.org/