member?(p1)
public
Returns true if any member of enum equals obj. Equality
is tested using ==.
IO.constants.include? :SEEK_SET
IO.constants.include? :SEEK_NO_FURTHER
Show source
static VALUE
enum_member(VALUE obj, VALUE val)
{
NODE *memo = NEW_MEMO(val, Qfalse, 0);
rb_block_call(obj, id_each, 0, 0, member_i, (VALUE)memo);
return memo->u2.value;
}