instance method
ObjectSpace::WeakKeyMap#key?
(Key) -> bool
map.key?(key) → true or false
weakmap.c
View on GitHub ↗
static VALUE
wkmap_has_key(VALUE self, VALUE key)
{
return RBOOL(!UNDEF_P(wkmap_lookup(self, key)));
}
Returns true if key is a key in self, otherwise false.