72件ヒット
[1-72件を表示]
(0.087秒)
別のキーワード
クラス
- Date (12)
-
Enumerator
:: Lazy (24) - Symbol (24)
- SystemExit (12)
検索結果
先頭5件
-
Symbol
# succ -> Symbol (18208.0) -
シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
...シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
(self.to_s.next.intern と同じです。)
:a.next # => :b
:foo.next # => :fop
@see String#succ... -
SystemExit
# success? -> bool (9101.0) -
終了ステータスが正常終了を示す値ならば true を返します。
...値ならば true を返します。
大半のシステムでは、ステータス 0 が正常終了を表します。
例:
begin
exit true
rescue SystemExit => err
p err.success? # => true
end
begin
exit false
rescue SystemExit => err
p err.success? # => false
end... -
Date
# next _ day(n = 1) -> Date (6107.0) -
n 日後を返します。
...n 日後を返します。
Date#succ も参照してください。
@param n 日数... -
Symbol
# next -> Symbol (3108.0) -
シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
...シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
(self.to_s.next.intern と同じです。)
:a.next # => :b
:foo.next # => :fop
@see String#succ... -
Enumerator
:: Lazy # collect {|item| . . . } -> Enumerator :: Lazy (3107.0) -
Enumerable#map と同じですが、配列ではなくEnumerator::Lazy を返します。
...Enumerator::Lazy を返します。
@raise ArgumentError ブロックを指定しなかった場合に発生します。
//emlist[例][ruby]{
1.step.lazy.map{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:map>
1.step.lazy.collect{ |n| n.succ }.take(10).force... -
Enumerator
:: Lazy # map {|item| . . . } -> Enumerator :: Lazy (3107.0) -
Enumerable#map と同じですが、配列ではなくEnumerator::Lazy を返します。
...Enumerator::Lazy を返します。
@raise ArgumentError ブロックを指定しなかった場合に発生します。
//emlist[例][ruby]{
1.step.lazy.map{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:map>
1.step.lazy.collect{ |n| n.succ }.take(10).force...