7件ヒット
  
    
      [1-7件を表示]
    
  
    (0.679秒)
  
  
    トップページ > 
:Object#method
 > 
:singleton_methods
 > 
:coverage
 > 
:lambda
 > 
:rdoc
 > 
:each
 > 
:main
 > 
:singleton_method
 > クラス:TracePoint
  
ライブラリ
- ビルトイン (7)
 
検索結果
- 
      
TracePoint
# parameters -> [object] (124.0)  - 
      
      
      
現在のフックが属するメソッドまたはブロックのパラメータ定義を返します。 フォーマットは Method#parameters と同じです。
...は Method#parameters と同じです。
@raise RuntimeError :call、:return、:b_call、:b_return、:c_call、:c_return
イベントのためのイベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(a, b = 2)
end
TracePoint.new(:c......all) do |tp|
p tp.parameters # => a], [:opt, :b
end.enable do
foo(1)
end
//}
@see Method#parameters, UnboundMethod#parameters, Proc#parameters... 
