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