Project

General

Profile

Actions

Feature #1882

closed

MatchData#==

Added by runpaint (Run Paint Run Run) almost 15 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:24748]

Description

=begin
Terribly unimportant, even by my standards, but could MatchData have a sensible #== defined? Currently two logically identical MatchData objects return false for #==.

a = 'haystack'.match(/hay/)
=> #<MatchData "hay">
b = 'haystack'.match(/hay/)
=> #<MatchData "hay">
a != b
=> true
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0