ライブラリ
- ビルトイン (306)
- getoptlong (60)
-
net
/ http (24) - openssl (24)
-
rdoc
/ context (48) -
rubygems
/ config _ file (12) - set (18)
-
shell
/ builtin-command (6) - socket (12)
- thread (12)
- tsort (58)
-
webrick
/ httpresponse (12) - win32ole (24)
クラス
- BasicSocket (12)
-
Enumerator
:: Lazy (24) -
Gem
:: ConfigFile (12) - GetoptLong (60)
- IO (144)
- Object (12)
-
OpenSSL
:: ASN1 :: Constructive (12) -
OpenSSL
:: Config (12) -
RDoc
:: Context (48) - Set (24)
-
Shell
:: Concat (6) - StopIteration (12)
-
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) -
WEBrick
:: HTTPResponse (12) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (48)
-
Net
:: HTTPHeader (24) - TSort (58)
キーワード
-
canonical
_ each (12) -
collect
_ concat (12) -
default
_ event _ sources (12) - deq (24)
-
each
_ attribute (12) -
each
_ capitalized (12) -
each
_ classmodule (12) -
each
_ cons (24) -
each
_ constant (12) -
each
_ line (72) -
each
_ method (12) -
each
_ option (12) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) -
flat
_ map (12) - handler= (12)
- intersection (12)
- ordering= (12)
- pop (24)
- quiet= (12)
- recvmsg (12)
-
respond
_ to? (12) - result (12)
- shift (24)
-
slice
_ before (24) -
strongly
_ connected _ components (12) - union (12)
検索結果
先頭5件
- TSort
# each _ strongly _ connected _ component -> Enumerator - TSort
# each _ strongly _ connected _ component {|nodes| . . . } -> nil - TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator - TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) {|nodes| . . . } -> () - OpenSSL
:: Config # each {|section , key , value| . . . } -> self
-
TSort
# each _ strongly _ connected _ component -> Enumerator (24477.0) -
TSort#strongly_connected_components メソッドのイテレータ版です。 obj.each_strongly_connected_component は obj.strongly_connected_components.each に似ていますが、 ブロックの評価中に obj が変更された場合は予期しない結果になる ことがあります。
...trongly_connected_components メソッドのイテレータ版です。
obj.each_strongly_connected_component は
obj.strongly_connected_components.each に似ていますが、
ブロックの評価中に obj が変更された場合は予期しない結果になる
ことがあります。
each_s......trongly_connected_component は nil を返します。
//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
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
non_sort.each_st......rongly_connected_component{|nodes|
p nodes
}
#出力
#=> [4]
#=> [2, 3]
#=> [1]
//}
@see TSort.each_strongly_connected_component... -
TSort
# each _ strongly _ connected _ component {|nodes| . . . } -> nil (24477.0) -
TSort#strongly_connected_components メソッドのイテレータ版です。 obj.each_strongly_connected_component は obj.strongly_connected_components.each に似ていますが、 ブロックの評価中に obj が変更された場合は予期しない結果になる ことがあります。
...trongly_connected_components メソッドのイテレータ版です。
obj.each_strongly_connected_component は
obj.strongly_connected_components.each に似ていますが、
ブロックの評価中に obj が変更された場合は予期しない結果になる
ことがあります。
each_s......trongly_connected_component は nil を返します。
//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
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
non_sort.each_st......rongly_connected_component{|nodes|
p nodes
}
#出力
#=> [4]
#=> [2, 3]
#=> [1]
//}
@see TSort.each_strongly_connected_component... -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator (24463.0) -
node から到達可能な強連結成分についてのイテレータです。
...せん。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//emlist[例 到達可能なノードを表示する][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(no......de, &block)
fetch(node).each(&block)
end
end
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
non_sort.each_strongly_connected_component{|nodes|
p nodes
nodes.each {|node|
non_sort.each_strongly_connected_component_from(node){|ns|
printf("%s -> %s\n", node, ns.join(","))
}
}......}
#出力
#=> [4]
#=> 4 -> 4
#=> [2, 3]
#=> 2 -> 4
#=> 2 -> 2,3
#=> 3 -> 4
#=> 3 -> 3,2
#=> [1]
#=> 1 -> 4
#=> 1 -> 2,3
#=> 1 -> 1
//}
@see TSort.each_strongly_connected_component_from... -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) {|nodes| . . . } -> () (24463.0) -
node から到達可能な強連結成分についてのイテレータです。
...せん。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//emlist[例 到達可能なノードを表示する][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(no......de, &block)
fetch(node).each(&block)
end
end
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
non_sort.each_strongly_connected_component{|nodes|
p nodes
nodes.each {|node|
non_sort.each_strongly_connected_component_from(node){|ns|
printf("%s -> %s\n", node, ns.join(","))
}
}......}
#出力
#=> [4]
#=> 4 -> 4
#=> [2, 3]
#=> 2 -> 4
#=> 2 -> 2,3
#=> 3 -> 4
#=> 3 -> 3,2
#=> [1]
#=> 1 -> 4
#=> 1 -> 2,3
#=> 1 -> 1
//}
@see TSort.each_strongly_connected_component_from... -
OpenSSL
:: Config # each {|section , key , value| . . . } -> self (21208.0) -
オブジェクトに含まれる全ての設定情報を順にブロックに渡し 呼び出します。
...列、キーに
割り当てられた値の文字列、の3つです。
require 'openssl'
conf = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
conf.each{|section, key, value| p [section, key, value]}
# => ["req_distinguished_name", "countryName", "Country Name (2 letter code)"]... -
GetoptLong
# each {|optname , optarg| . . . } (21103.0) -
get メソッドのイテレータ版です。オプションとその引数の取得を 繰り返し行います。
...get メソッドのイテレータ版です。オプションとその引数の取得を
繰り返し行います。
@see GetoptLong#get... -
Gem
:: ConfigFile # each {|key , value| . . . } -> Hash (21102.0) -
設定ファイルの各項目のキーと値をブロック引数として与えられたブロックを評価します。
設定ファイルの各項目のキーと値をブロック引数として与えられたブロックを評価します。 -
OpenSSL
:: ASN1 :: Constructive # each {|item| . . . } -> self (21102.0) -
構造型のデータに含まれる各要素に対してブロックを 評価します。
構造型のデータに含まれる各要素に対してブロックを
評価します。 -
Shell
:: Concat # each(rs = nil) {|job| . . . } (21102.0) -
@todo
@todo