Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Struct#eql?

struct.eql?(other) → true or false

Hash equality—other and struct refer to the same hash key if they have the same struct subclass and have equal member values (according to Object#eql?).

See also #each_pair #filter #each #hash also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1