るりまサーチ (Ruby 2.2.0)

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

別のキーワード

  1. prime next
  2. _builtin next
  3. date next
  4. date next_year
  5. date next_day

検索結果

Integer#next -> Integer (54388.0)

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

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

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

@see Integer#pred...

Integer#succ -> Integer (54388.0)

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

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

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

@see Integer#pred...