るりまサーチ (Ruby 3.0)

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

別のキーワード

  1. _builtin include?
  2. socket mcast_include
  3. ipaddr include?
  4. _builtin include
  5. dbm include?

ライブラリ

検索結果

Set#include?(o) -> bool (54964.0)

オブジェクト o がその集合に属する場合に true を返します。

...オブジェクト o がその集合に属する場合に true を返します。

@param o オブジェクトを指定します。

//emlist[][ruby]{
require 'set'
set
= Set['hello', 'world']
p set.include?('world') # => true
p set.include?('bye') # => false
//}...