Ruby 1.9.2 Reference Manual > All Libraries > Builtin Library > class Struct > equal?

instance method Struct#equal?

equal?(other) -> bool

指定された other が self 自身である場合のみ真を返します。 これは Object クラスで定義されたデフォルトの動作で す。

[SEE_ALSO] Struct#eql?, Struct#==