るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.040秒)
トップページ > バージョン:2.5.0[x] > ライブラリ:ビルトイン[x] > クエリ:TRUE[x] > クラス:ThreadGroup[x]

別のキーワード

  1. object true
  2. _builtin true
  3. rb_true
  4. true
  5. true object

検索結果

ThreadGroup#enclosed? -> bool (76.0)

自身が enclose されているなら true を返します。そうでないなら false を返します。デフォルトは false です。

...す。

freeze された ThreadGroup には Thread の追加/削除ができませんが、enclosed? は false を返します。

thg = ThreadGroup.new
p thg.enclosed? # => false
thg.enclose
p thg.enclosed? # => true

thg = ThreadGroup.new
p thg.enclosed?...
...# => false
thg.freeze
p thg.enclosed? # => false

@see ThreadGroup#enclose...