instance method
ObjectSpace::WeakMap#include?
map.key?(key) -> true or false
weakmap.c
View on GitHub ↗
static VALUE
wmap_has_key(VALUE self, VALUE key)
{
return RBOOL(!UNDEF_P(wmap_lookup(self, key)));
}
Returns true if key is a key in self, otherwise false.