このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

Ruby 3.0 リファレンスマニュアル

instance method REXML::Comment#==

self == other -> bool[permalink][rdoc][edit]

other と内容(REXML::Comment#string)が同じならば真を返します。