Project

General

Profile

Actions

Feature #7068

closed

ability to deactivate Hash#compare_by_identity()

Added by sunaku (Suraj Kurapati) about 12 years ago. Updated almost 11 years ago.

Status:
Rejected
Target version:
[ruby-core:47697]

Description

Hello,

I am using ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux].

There is no way to deactivate a Hash's compare by identity behavior:

h = Hash.new
h.compare_by_identity
h.compare_by_identity? #=> true
h.compare_by_identity
h.compare_by_identity? #=> still true

I want the ability to deactivate that behavior afterwards, like this:

h.compare_by_identity = false

Thanks for your consideration.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0