るりまサーチ (Ruby 3.3)

最速Rubyリファレンスマニュアル検索!
4件ヒット [1-4件を表示] (0.052秒)

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. module >
  4. float >
  5. complex >

ライブラリ

クラス

キーワード

検索結果

Integer#pred -> Integer (54643.0)

self から -1 した値を返します。

self から -1 した値を返します。

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

@see Integer#next

Gem::DependencyList#spec_predecessors -> Hash (18640.0)

@todo ???

@todo ???

Return a hash of predecessors. <tt>result[spec]</tt> is an
Array of gemspecs that have a dependency satisfied by the named
spec.

Integer#next -> Integer (322.0)

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

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

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

@see Integer#pred

Integer#succ -> Integer (322.0)

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

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

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

@see Integer#pred