Method: Weak::Map#include?

Defined in:
lib/weak/map.rb

#include?(key) ⇒ Bool Also known as: has_key?, key?, member?

Note:

Weak::Map does not test member equality with == or eql?. Instead, it always checks strict object equality, so that, e.g., different String keys are not considered equal, even if they may contain the same content.

Returns true if the given key is included in self and has an associated live value, false otherwise.

Parameters:

  • a possible key

Returns:

  • true if the given key is included in self and has an associated live value, false otherwise



# File 'lib/weak/map.rb', line 252