ruby-reference-manual:3119
From: "ko1 (Koichi Sasada)" <redmine@r...>
Date: Mon, 2 Jul 2012 17:17:53 +0900
Subject: [ruby-reference-manual:3119] [るりまプロジェクト - Bug #6686][Open] set_trace_func accepts one argument.
Issue #6686 has been reported by ko1 (Koichi Sasada). ---------------------------------------- Bug #6686: set_trace_func accepts one argument. https://bugs.ruby-lang.org/issues/6686 Author: ko1 (Koichi Sasada) Status: Open Priority: Normal Assignee: Category: doc Target version: reporter: ruby_version: http://doc.ruby-lang.org/ja/1.9.3/method/Kernel/m/set_trace_func.html を見ると, set_trace_func {|event, file, line, id, binding, klass| ... } -> Proc という使い方があるのですが,これを書いてみると set_trace_func {|event, file, line, id, binding, klass| p event } #=> ruby 2.0.0dev (2012-07-02 trunk 36265) [i386-mswin32_100] t.rb:1:in `set_trace_func': wrong number of arguments (0 for 1) (ArgumentError) from t.rb:1:in `<main>' と怒られました. -- http://bugs.ruby-lang.org/ -- ML: ruby-reference-manual@m... Info: http://QuickML.com/