Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
OpenStruct#eql?
eql?(other)
lib/ostruct.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/ostruct.rb, line 433
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?.