るりまサーチ

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

別のキーワード

  1. kernel $-l
  2. matrix l
  3. _builtin $-l
  4. lupdecomposition l
  5. l

ライブラリ

クラス

キーワード

検索結果

<< < ... 3 4 5 >>

Date#downto(min) {|date| ...} -> self (123.0)

このメソッドは、step(min, -1){|date| ...} と等価です。

...このメソッドは、step(min, -1){|date| ...} と等価です。

@param min 日付オブジェクト

@see Date#step, Date#upto...

Date#upto(max) {|date| ...} -> self (123.0)

このメソッドは、step(max, 1){|date| ...} と等価です。

...このメソッドは、step(max, 1){|date| ...} と等価です。

@param max 日付オブジェクト

@see Date#step, Date#downto...

Enumerator::ArithmeticSequence#==(other) -> bool (107.0)

Enumerable::ArithmeticSequence として等しいか判定します。

...Enumerable::ArithmeticSequence として等しいか判定します。

other が Enumerable::ArithmeticSequence で
begin, end, step, exclude_end? が等しい時に
true を返します。

@param other 自身と比較する Enumerable::ArithmeticSequence...

Integer#downto(min) {|n| ... } -> self (107.0)

self から min まで 1 ずつ減らしながらブロックを繰り返し実行します。 self < min であれば何もしません。

...elf から min まで 1 ずつ減らしながらブロックを繰り返し実行します。
self < min であれば何もしません。

@param min 数値
@return self を返します。

//emlist[][ruby]{
5.downto(1) {|i| print i, " " } # => 5 4 3 2 1
//}

@see Integer#upto, Numeric#step,...

Integer#times {|n| ... } -> self (107.0)

self 回だけ繰り返します。 self が正の整数でない場合は何もしません。

...self 回だけ繰り返します。
self が正の整数でない場合は何もしません。

またブロックパラメータには 0 から self - 1 までの数値が渡されます。

//emlist[][ruby]{
3.times { puts "Hello, World!" } # Hello, World! と3行続いて表示される。
0.t...
...imes { puts "Hello, World!" } # 何も表示されない。
5.times {|n| print n } # 01234 と表示される。
//}

@see Integer#upto, Integer#downto, Numeric#step...

絞り込み条件を変える

<< < ... 3 4 5 >>