include?(o) -> bool
[permalink][rdoc][edit]member?(o) -> bool
self === o -> bool
-
オブジェクト o がその集合に属する場合に true を返します。
- [PARAM] o:
- オブジェクトを指定します。
set = Set['hello', 'world'] p set.include?('world') # => true p set.include?('bye') # => false
include?(o) -> bool
[permalink][rdoc][edit]member?(o) -> bool
self === o -> bool
オブジェクト o がその集合に属する場合に true を返します。
set = Set['hello', 'world']
p set.include?('world') # => true
p set.include?('bye') # => false