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

instance method Gem::Dependency#<=>

self <=> other -> IntegerRuby 1.9.3 から[permalink][rdoc][edit]

self と other を Gem::Dependency#name の ASCII コードで比較して self が大きい時には正の整数、等しい時には 0、小さい時には負の整数を返します。