るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.236秒)
トップページ > クエリ:l[x] > クエリ:>[x] > クエリ:e[x] > クエリ:return_value[x]

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix determinant_e
  4. matrix det_e
  5. open3 capture2e

ライブラリ

クラス

検索結果

TracePoint#return_value -> object (30407.0)

メソッドやブロックの戻り値を返します。

...raise RuntimeError :return、:c_return、:b_return イベントのためのイベ
ントフックの外側で実行した場合に発生します。

//emlist[例][ruby]{
def foo(ret)
ret
e
nd
trace = TracePoint.new(:return) do |tp|
p tp.return_value # => 1
e
nd
trace.enable
fo...