Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > opensslライブラリ > OpenSSL::BNクラス > <=>

instance method OpenSSL::BN#<=>

self <=> other -> -1 | 0 | 1
cmp(other) -> -1 | 0 | 1

自身と other を比較し、otherのほうが小さければ-1、 大きければ+1、等しければ 0 を返します。

[PARAM] other:
比較する数
class OpenSSL::BN