Project

General

Profile

Actions

Feature #13801

closed

Implement case equality test for Set#===

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

Status:
Closed
Priority:
Normal
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