Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > ostructライブラリ > OpenStructクラス > eql?

instance method OpenStruct#eql?

eql?(other) -> bool[permalink][rdoc]

self と other が等しい場合に true を返します。そうでない場合は false を返します。

具体的には other が OpenStruct オブジェクトかそのサブクラスでかつ、 self の各要素を保持した内部の Hash が eql? で比較して等しい場合に true を返します。

[PARAM] other:
比較対象のオブジェクトを指定します。