method
key?
v2_6_3 -
Show latest stable
- Class:
Hash
key?(p1)public
No documentation available.
VALUE
rb_hash_has_key(VALUE hash, VALUE key)
{
if (RHASH_AR_TABLE_P(hash) && ar_lookup(hash, key, 0)) {
return Qtrue;
}
else if (RHASH_ST_TABLE_P(hash) && st_lookup(RHASH_ST_TABLE(hash), key, 0)) {
return Qtrue;
}
return Qfalse;
}