るりまサーチ (Ruby 3.1)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.179秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:n[x] > クエリ:r[x] > バージョン:3.1[x] > クエリ:binding[x] > クラス:TracePoint[x]

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. pop n_mails
  3. rsa n=
  4. rsa n
  5. openssl n

ライブラリ

検索結果

TracePoint#binding -> Binding (82279.0)

発生したイベントによって生成された Binding オブジェクトを返します。

...発生したイベントによって生成された Binding オブジェクトを返します。


//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}...

TracePoint#self -> object (18043.0)

イベントを発生させたオブジェクトを返します。

...イベントを発生させたオブジェクトを返します。

以下のようにする事で同じ値を取得できます。


//emlist[例][ruby]{
trace.binding.eval('self')
//}

@see TracePoint#binding...