るりまサーチ

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

別のキーワード

  1. kernel $-l
  2. matrix l
  3. _builtin $-l
  4. lupdecomposition l
  5. l matrix

ライブラリ

検索結果

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