るりまサーチ (Ruby 2.1.0)

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

別のキーワード

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

検索結果

Integer#succ -> Integer (45349.0)

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

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

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

@see Integer#pred...

Integer#next -> Integer (49.0)

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

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

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

@see Integer#pred...