610件ヒット
[601-610件を表示]
(0.105秒)
ライブラリ
- ビルトイン (108)
- dbm (12)
- gdbm (12)
-
net
/ http (36) -
net
/ imap (72) - pstore (12)
-
rinda
/ tuplespace (24) -
rubygems
/ remote _ fetcher (120) -
rubygems
/ spec _ fetcher (132) - sdbm (12)
- tsort (70)
クラス
- Array (36)
- DBM (12)
- GDBM (12)
-
Gem
:: RemoteFetcher (120) -
Gem
:: SpecFetcher (132) - Hash (48)
- KeyError (16)
-
Net
:: IMAP (48) -
Net
:: IMAP :: FetchData (24) - PStore (12)
-
Rinda
:: TupleEntry (24) - SDBM (12)
- Thread (8)
モジュール
-
Net
:: HTTPHeader (36) - TSort (70)
キーワード
- [] (32)
- attr (12)
-
cache
_ dir (12) -
connection
_ for (12) - dir (12)
- download (12)
-
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - escape (12)
-
fetch
_ path (12) -
fetch
_ spec (12) -
find
_ matching (12) -
get
_ file _ uri _ path (12) -
get
_ proxy _ from _ env (12) - key (8)
-
latest
_ specs (12) -
legacy
_ repos (12) - list (12)
-
load
_ specs (12) -
open
_ uri _ or _ path (12) - receiver (8)
- request (12)
- reset (12)
- seqno (12)
- specs (12)
- store (12)
-
strongly
_ connected _ components (12) - tsort (12)
-
uid
_ fetch (12) -
uid
_ store (12) - unescape (12)
-
warn
_ legacy (12)
検索結果
-
TSort
# tsort -> Array (13.0) -
頂点をトポロジカルソートして得られる配列を返します。 この配列は子から親に向かってソートされています。 すなわち、最初の要素は子を持たず、最後の要素は親を持ちません。
...発生します。
//emlist[使用例][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end
sorted = {1=>[2, 3], 2=>[3], 3=>[], 4=>[]}.tsort
p sorted #=> [3, 2, 1, 4]
//}
@see TSort.tsort... -
Thread
# [](name) -> object | nil (13.0) -
name に対応したスレッドに固有のデータを取り出します。 name に対応するスレッド固有データがなければ nil を返し ます。
...@param name スレッド固有データのキーを文字列か Symbol で指定します。
//emlist[例][ruby]{
[
Thread.new { Thread.current["name"] = "A" },
Thread.new { Thread.current[:name] = "B" },
Thread.new { Thread.current["name"] = "C" }
].each do |th|
th.join
puts "#{th.inspe......e
p Thread.current[:name]
# => nil if fiber-local
# => 2 if thread-local (The value 2 is leaked to outside of meth method.)
//}
Fiber を切り替えても同じ変数を返したい場合は
Thread#thread_variable_get と Thread#thread_variable_set
を使用してください。
@see Thread#fetch...