るりまサーチ

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

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. kernel p
  5. kernel $-p

ライブラリ

検索結果

Set#include?(o) -> bool (18114.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
//}...
...オブジェクト o がその集合に属する場合に true を返します。

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

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

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