るりまサーチ

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

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

キーワード

検索結果

Enumerator::ArithmeticSequence#end -> Numeric | nil (29109.0)

末項(終端)を返します。

...末項(終端)を返します。

@see Enumerator::ArithmeticSequence#begin...

Enumerator::ArithmeticSequence#exclude_end? -> bool (17103.0)

末項(終端)を含まないとき真を返します。

末項(終端)を含まないとき真を返します。

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

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

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

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

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

Enumerator::ArithmeticSequence#hash -> Integer (11020.0)

自身のハッシュ値を返します。

...自身のハッシュ値を返します。

begin, end, step, exclude_end? が等しい Enumerable::ArithmeticSequence
同じハッシュ値を返します。...

Enumerator::ArithmeticSequence#begin -> Numeric (11014.0)

初項 (始端) を返します。

...初項 (始端) を返します。

@see Enumerator::ArithmeticSequence#end...

絞り込み条件を変える

Enumerator::ArithmeticSequence#begin -> Numeric | nil (11014.0)

初項 (始端) を返します。

...初項 (始端) を返します。

@see Enumerator::ArithmeticSequence#end...

Numeric#step(by: 1, to: Float::INFINITY) -> Enumerator::ArithmeticSequence (8117.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(by:, to: -Float::INFINITY) -> Enumerator::ArithmeticSequence (8117.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(limit, step = 1) -> Enumerator::ArithmeticSequence (8117.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(by: 1, to: Float::INFINITY) -> Enumerator (8017.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

絞り込み条件を変える

Numeric#step(by: 1, to: Float::INFINITY) {|n| ... } -> self (8017.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(by:, to: -Float::INFINITY) -> Enumerator (8017.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(by:, to: -Float::INFINITY) {|n| ... } -> self (8017.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(limit, step = 1) -> Enumerator (8017.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(limit, step = 1) {|n| ... } -> self (8017.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

絞り込み条件を変える