るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.103秒)

別のキーワード

  1. fiddle sym
  2. handle sym
  3. _builtin to_sym
  4. symbol to_sym
  5. string to_sym

検索結果

TracePoint#event -> Symbol (54625.0)

発生したイベントの種類を Symbol で返します。

発生したイベントの種類を Symbol で返します。

発生するイベントの詳細については、TracePoint.new を参照してくださ
い。

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

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

REXML::Parsers::PullEvent#event_type -> Symbol (27625.0)

イベントの種類をシンボルで返します。

イベントの種類をシンボルで返します。

詳しくは c:REXML::Parsers::PullParser#event_type を参照してください。