るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.080秒)
トップページ > クエリ:-[x] > クエリ:lock[x] > クエリ:each_entry[x]

別のキーワード

  1. mutex_m mu_lock
  2. mutex_m try_lock
  3. mutex_m lock
  4. net/http lock
  5. mutex_m mu_try_lock

ライブラリ

モジュール

検索結果

Enumerable#each_entry {|obj| block} -> self (18308.0)

ブロックを各要素に一度ずつ適用します。

...配列として渡されます。

//emlist[例][ruby]{
class Foo
include Enumerable
def each
yield 1
yield 1,2
end
end
Foo.new.each_entry{|o| print o, " -- "}
# => 1 -- [1, 2] --
//}

ブロックを省略した場合は Enumerator が返されます。

@see Enumerable#slice_before...