5件ヒット
[1-5件を表示]
(0.053秒)
別のキーワード
種類
- インスタンスメソッド (4)
- クラス (1)
ライブラリ
- ビルトイン (4)
-
rubygems
/ dependency _ list (1)
クラス
-
Gem
:: DependencyList (1) - Integer (3)
キーワード
- Numeric (1)
- next (1)
-
spec
_ predecessors (1) - succ (1)
検索結果
先頭5件
-
Integer
# pred -> Integer (54640.0) -
self から -1 した値を返します。
self から -1 した値を返します。
//emlist[][ruby]{
1.pred #=> 0
(-1).pred #=> -2
//}
@see Integer#next -
Gem
:: DependencyList # spec _ predecessors -> Hash (18637.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 (319.0) -
self の次の整数を返します。
self の次の整数を返します。
//emlist[][ruby]{
1.next #=> 2
(-1).next #=> 0
1.succ #=> 2
(-1).succ #=> 0
//}
@see Integer#pred -
Integer
# succ -> Integer (319.0) -
self の次の整数を返します。
self の次の整数を返します。
//emlist[][ruby]{
1.next #=> 2
(-1).next #=> 0
1.succ #=> 2
(-1).succ #=> 0
//}
@see Integer#pred -
Numeric (73.0)
-
数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。
数値を表す抽象クラスです。Integer や Float などの数値クラス
は Numeric のサブクラスとして実装されています。
演算や比較を行うメソッド(+, -, *, /, <=>)は Numeric のサブクラスで定義されま
す。Numeric で定義されているメソッドは、サブクラスで提供されているメソッド
(+, -, *, /, %) を利用して定義されるものがほとんどです。
つまり Numeric で定義されているメソッドは、Numeric のサブクラスとして新たに数値クラスを定義した時に、
演算メソッド(+, -, *, /, %, <=>, coerce)だけを定義すれ...