method

member?

v1_9_1_378 - Show latest stable - Class: Enumerable
member?(p1)
public

Returns true if any member of enum equals obj. Equality is tested using ==.

IO.constants.include? :SEEK_SET          #=> true
IO.constants.include? :SEEK_NO_FURTHER   #=> false

1Note

Video Explanation of member?

MattStopa ยท Mar 11, 2012