るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.009秒)
トップページ > クエリ:succ[x] > クラス:Integer[x]

別のキーワード

  1. prime succ
  2. _builtin succ
  3. date succ
  4. ipaddr succ
  5. symbol succ

ライブラリ

検索結果

Integer#succ -> Integer (15114.0)

self の次の整数を返します。

...self の次の整数を返します。

//emlist[][ruby]{
1.next #=> 2
(-1).next #=> 0
1.succ #=> 2
(-1).succ #=> 0
//}

@see Integer#pred...

Integer#next -> Integer (14.0)

self の次の整数を返します。

...self の次の整数を返します。

//emlist[][ruby]{
1.next #=> 2
(-1).next #=> 0
1.succ #=> 2
(-1).succ #=> 0
//}

@see Integer#pred...