Ruby 2.5.0 リファレンスマニュアル > ライブラリ一覧 > matrixライブラリ > Matrixクラス > ==

instance method Matrix#==

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

自分自身と other を比較し、同値であれば真(true)を返します。

[PARAM] other:
比較対象のオブジェクト