Project

General

Profile

Actions

Feature #13801

closed

Implement case equality test for Set#===

Added by davidarnold (David Arnold) over 7 years ago. Updated about 7 years ago.

Status:
Closed
Target version:
-
[ruby-core:82334]

Description

In keeping with other class semantics, Set should implement an inclusion / membership test for #===.

For example with Range:

(1..3) === 2 #=> true

Desired behavior:

Set[1, 2, 3] === 2 #=> true

Current behavior:

Set[1, 2, 3] === 2 #=> false
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0