End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenStruct#eql?
eql?(other)
lib/ostruct.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/ostruct.rb, line 421
def eql?(other)
return false unless other.kind_of?(OpenStruct)
@table.eql?(other.table!)
end
Compares this object and other for equality. An OpenStruct is eql? to other when other is an OpenStruct and the two objects’ Hash tables are eql?.