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)
{
VALUE memo[2];
memo[0] = val;
memo[1] = Qfalse;
rb_block_call(obj, id_each, 0, 0, member_i, (VALUE)memo);
return memo[1];
}