るりまサーチ

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.030秒)
トップページ > クエリ:ruby[x] > 種類:インスタンスメソッド[x] > クエリ:include[x] > クエリ:include?[x] > クラス:Set[x] > ライブラリ:ビルトイン[x]

別のキーワード

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

検索結果

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

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

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

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

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