るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.053秒)
トップページ > クエリ:Proc.new[x] > クエリ:size[x] > クエリ:Marshal フォーマット[x] > バージョン:2.6.0[x] > クラス:TracePoint[x]

別のキーワード

  1. _builtin size
  2. _builtin marshal_dump
  3. net/imap size
  4. _builtin size?
  5. rexml/document size

ライブラリ

検索結果

TracePoint#parameters -> [object] (40.0)

現在のフックが属するメソッドまたはブロックのパラメータ定義を返します。 フォーマットは Method#parameters と同じです。

...イベントのためのイベントフックの外側で実行した場合に発生します。

//emlist[例][ruby]{
def foo(a, b = 2)
end
TracePoint
.new(:call) do |tp|
p tp.parameters # => a], [:opt, :b
end.enable do
foo(1)
end
//}

@see Method#parameters, UnboundMethod#parameters, Proc#...