Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > rexml/documentライブラリ > REXML::Commentクラス > <=>

instance method REXML::Comment#<=>

self <=> other -> -1 | 0 | 1[permalink][rdoc]

other と内容(REXML::Comment#string)を比較します。