最速Rubyリファレンスマニュアル検索!
すべて(3)
2.1.0(1)
2.2.0(1)
2.3.0(1)
3件ヒット
[1-3件を表示]
(0.031秒)
トップページ
>
:
nil
>
:
<
>
クラス:Bignum
別のキーワード
_builtin nil?
nilclass nil?
object nil?
_builtin nil
object nil
ライブラリ
ビルトイン
(3)
検索結果
先頭1件
Bignum
#
<=>(other) -> Fixnum | nil
Bignum
#
<=>(other) -> Fixnum | nil
(6202.0)
2.1.0
2.2.0
2.3.0
インスタンスメソッド
self と other を比較して、self が大きい時に正、 等しい時に 0、小さい時に負の整数を返します。
...
self と other を比較して、self が大きい時に正、
等しい時に 0、小さい時に負の整数を返します。
@param other 比較対象の数値
@return -1 か 0 か 1 のいずれか
1
<
=> 2 #=> -1
1
<
=> 1 #=> 0
2
<
=> 1 #=> 1
...