Skip to content

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)

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?.

See also #each_pair #freeze #dig #inspect also in 3.4 · 3.3 · 3.2 · 3.0