Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Hash#include?
(K arg0) -> bool
hash.include?(key) → true or false
hash.c
View on GitHub ↗
VALUE
rb_hash_has_key(VALUE hash, VALUE key)
{
return RBOOL(hash_stlike_lookup(hash, key, NULL));
}
Returns true if key is a key in self, otherwise false.