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
IO.constants.member? :SEEK_SET
IO.constants.member? :SEEK_NO_FURTHER
Show source
static VALUE
enum_member(VALUE obj, VALUE val)
{
struct MEMO *memo = MEMO_NEW(val, Qfalse, 0);
rb_block_call(obj, id_each, 0, 0, member_i, (VALUE)memo);
return memo->v2;
}