Skip to content
instance method

Hash#compare_by_identity?

() -> bool
compare_by_identity? → true or false

Returns whether compare_by_identity has been called:

Example
h = {}
h.compare_by_identity? # => false
h.compare_by_identity
h.compare_by_identity? # => true

Related: compare_by_identity; see also Methods for Comparing.

See also #compare_by_identity #default #compact! #default= also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0