るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.029秒)
トップページ > クエリ:ruby[x] > クエリ:include[x] > クラス:Set[x] > クエリ:include?[x] > バージョン:2.3.0[x]

別のキーワード

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

ライブラリ

検索結果

Set#include?(o) -> bool (72661.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
//}...

Set#member?(o) -> bool (18061.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
//}...