Ruby 2.4.0 リファレンスマニュアル > ライブラリ一覧 > rubygems/platformライブラリ > Gem::Platformクラス > =~

instance method Gem::Platform#=~

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

自身と other のプラットフォームが一致する場合に真を返します。そうでない場合は、偽を返します。

other が文字列の場合は、まず Gem::Platform に変換してから比較を行います。 other が文字列でも Gem::Platform でもない場合は nil を返します。

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

[SEE_ALSO] Gem::Platform#===