Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Method value? is an alias for #has_value?.
Returns true if value is a value in self, otherwise false.
 
               static VALUE
rb_hash_has_value(VALUE hash, VALUE val)
{
    VALUE data[2];

    data[0] = Qfalse;
    data[1] = val;
    rb_hash_foreach(hash, rb_hash_search_value, (VALUE)data);
    return data[0];
}
            

Was this page useful?