Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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.2 · 3.1 · 3.0