るりまサーチ (Ruby 3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.094秒)
トップページ > クエリ:_builtin[x] > クエリ:TRUE[x] > バージョン:3.0[x] > クエリ:==[x] > クエリ:DEFAULT[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

クラス

検索結果

Random::DEFAULT -> Class (78376.0)

Ruby 3.0 から非推奨です。代わりに Random クラスオブジェクトを擬似乱数生成器として使用してください。

...Ruby 3.0 から非推奨です。代わりに Random クラスオブジェクトを擬似乱数生成器として使用してください。


また、 Random::DEFAULT は Random クラスオブジェクトが返ります。

//emlist[][ruby]{
Random::DEFAULT == Random # => true
Random.rand(10) #...

Thread#group -> ThreadGroup (24055.0)

スレッドが属している ThreadGroup オブジェクトを返します。

スレッドが属している ThreadGroup オブジェクトを返します。

p Thread.current.group == ThreadGroup::Default
# => true