るりまサーチ

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

別のキーワード

  1. _builtin enabled?
  2. profiler enabled?
  3. tracepoint enabled?
  4. fiddle close_enabled?
  5. handle close_enabled?

ライブラリ

キーワード

検索結果

TracePoint#enabled? -> bool (18103.0)

self のトレースが有効な場合に true を、そうでない場合に false を返しま す。

...self のトレースが有効な場合に true を、そうでない場合に false を返しま
す。


@see TracePoint#enable, TracePoint#disable...

TracePoint#disable -> bool (32.0)

self のトレースを無効にします。

...

実行前の TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)

//emlist[例][ruby]{
trace.enabled? # => true
trace.disable # => false (実行前の状態)
trace.enabled? # => false
trace...
...なります。
この場合はブロックの評価結果を返します。

//emlist[例][ruby]{
trace.enabled? # => true

trace.disable do
trace.enabled? # => false
end

trace.enabled? # => true
//}

[注意] イベントフックのためのメソッドに、ブロックの外側で参照...
...した場合は
RuntimeError が発生する事に注意してください。

trace.enable { p trace.lineno }
# => RuntimeError: access from outside

@see TracePoint#enable, TracePoint#enabled?...

TracePoint#disable { ... } -> object (32.0)

self のトレースを無効にします。

...

実行前の TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)

//emlist[例][ruby]{
trace.enabled? # => true
trace.disable # => false (実行前の状態)
trace.enabled? # => false
trace...
...なります。
この場合はブロックの評価結果を返します。

//emlist[例][ruby]{
trace.enabled? # => true

trace.disable do
trace.enabled? # => false
end

trace.enabled? # => true
//}

[注意] イベントフックのためのメソッドに、ブロックの外側で参照...
...した場合は
RuntimeError が発生する事に注意してください。

trace.enable { p trace.lineno }
# => RuntimeError: access from outside

@see TracePoint#enable, TracePoint#enabled?...

TracePoint#enable -> bool (32.0)

self のトレースを有効にします。

... TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)

//emlist[例][ruby]{
trace.enabled? # => false
trace.enable # => false (実行前の状態)

# トレースが有効

trace.enabled?...
...になります。
この場合はブロックの評価結果を返します。

//emlist[例][ruby]{
trace.enabled? # => false

trace.enable do
trace.enabled? # => true
end

trace.enabled? # => false
//}

[注意] イベントフックのためのメソッドにブロックの外側で参照...
...した場合は
RuntimeError が発生する事に注意してください。

//emlist[例][ruby]{
trace.enable { p trace.lineno }
# => RuntimeError: access from outside
//}

@see TracePoint#disable, TracePoint#enabled?...

TracePoint#enable { ... } -> object (32.0)

self のトレースを有効にします。

... TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)

//emlist[例][ruby]{
trace.enabled? # => false
trace.enable # => false (実行前の状態)

# トレースが有効

trace.enabled?...
...になります。
この場合はブロックの評価結果を返します。

//emlist[例][ruby]{
trace.enabled? # => false

trace.enable do
trace.enabled? # => true
end

trace.enabled? # => false
//}

[注意] イベントフックのためのメソッドにブロックの外側で参照...
...した場合は
RuntimeError が発生する事に注意してください。

//emlist[例][ruby]{
trace.enable { p trace.lineno }
# => RuntimeError: access from outside
//}

@see TracePoint#disable, TracePoint#enabled?...

絞り込み条件を変える