1065件ヒット
[1-100件を表示]
(0.076秒)
ライブラリ
- ビルトイン (292)
-
drb
/ acl (11) -
irb
/ cmd / help (11) -
irb
/ extend-command (11) - logger (22)
- matrix (22)
- mkmf (22)
-
net
/ ftp (11) -
net
/ http (22) -
net
/ imap (44) -
net
/ smtp (72) - objspace (11)
- openssl (66)
- pathname (11)
- psych (11)
- rake (11)
-
rubygems
/ dependency _ list (11) -
rubygems
/ format (22) -
rubygems
/ old _ format (22) -
rubygems
/ package / tar _ input (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ source _ index (11) -
rubygems
/ specification (33) -
rubygems
/ user _ interaction (22) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (99)
- timeout (19)
- tsort (42)
クラス
- File (11)
-
Gem
:: DependencyList (11) -
Gem
:: Format (22) -
Gem
:: OldFormat (22) -
Gem
:: Package :: TarInput (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: SourceIndex (11) -
Gem
:: Specification (33) -
Gem
:: StreamUI (11) - IPSocket (11)
-
IRB
:: ExtendCommand :: Help (11) - LocalJumpError (22)
- Logger (22)
- Matrix (22)
- Module (11)
-
Net
:: FTP (11) -
Net
:: HTTP (22) -
Net
:: IMAP (33) -
Net
:: IMAP :: Envelope (11) -
Net
:: SMTP (72) - Object (22)
-
OpenSSL
:: X509 :: ExtensionFactory (55) - Pathname (11)
-
Rake
:: FileList (11) - Range (11)
-
RubyVM
:: InstructionSequence (27) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (44)
- String (22)
- Struct (2)
- Thread (8)
- ThreadGroup (11)
- Time (11)
- TracePoint (44)
- UDPSocket (11)
- UNIXSocket (11)
モジュール
- Enumerable (44)
-
Gem
:: UserInteraction (11) -
IRB
:: ExtendCommandBundle (11) - Kernel (79)
- ObjectSpace (11)
-
OpenSSL
:: OCSP (11) -
Socket
:: Constants (22) - TSort (42)
- Timeout (19)
キーワード
- ACL (11)
- DATA (11)
-
MCAST
_ BLOCK _ SOURCE (22) -
MCAST
_ UNBLOCK _ SOURCE (22) -
REVOKED
_ STATUS _ REMOVEFROMCRL (11) - Rubyの起動 (3)
- append (11)
-
choose
_ from _ list (22) -
convertible
_ int (22) -
create
_ ext _ from _ array (11) -
create
_ ext _ from _ hash (11) -
create
_ ext _ from _ string (11) -
create
_ extension (22) - debug (22)
- disable (22)
- each (11)
-
each
_ strongly _ connected _ component _ from (42) - enable (22)
- enclose (11)
- encode! (22)
- eval (22)
-
excluded
_ from _ list? (11) - execute (11)
-
exit
_ value (11) - fiddle (11)
-
from
_ file _ by _ path (22) -
from
_ installed _ gems (11) -
from
_ io (22) -
from
_ source _ index (11) -
from
_ yaml (11) -
get
_ proxy _ from _ env (11) - include (11)
-
install
_ alias _ method (11) - irb (11)
- lambda (17)
-
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) -
load
_ gemspec (11) -
loaded
_ from (11) -
loaded
_ from= (11) - mailfrom (11)
-
max
_ by (44) - minor (22)
- new (2)
- proc (18)
-
proxy
_ from _ env= (11) -
proxy
_ from _ env? (11) -
reachable
_ objects _ from (11) - reason (11)
- recvfrom (33)
-
recvfrom
_ nonblock (22) -
relative
_ path _ from (11) - rename (40)
-
report
_ on _ exception (8) -
ruby 1
. 8 . 2 feature (11) -
rubygems
/ commands / lock _ command (11) -
rubygems
/ commands / uninstall _ command (11) - search (11)
-
send
_ mail (11) - sendmail (11)
- start (28)
- strftime (11)
- timeout (19)
-
to
_ binary (9) -
uid
_ search (11) - xmlrpc (3)
-
yaml
_ tag (11) - セキュリティモデル (11)
- 制御構造 (11)
- 手続きオブジェクトの挙動の詳細 (11)
検索結果
先頭5件
- Net
:: IMAP :: Envelope # from -> [Net :: IMAP :: Address] | nil - Net
:: SMTP # mailfrom(from _ addr) -> Net :: SMTP :: Response - Gem
:: Format . from _ file _ by _ path(file _ path , security _ policy = nil) -> Gem :: Format - Gem
:: OldFormat . from _ file _ by _ path(file _ path) -> Gem :: OldFormat - Gem
:: StreamUI # choose _ from _ list(question , list) -> Array
-
Net
:: IMAP :: Envelope # from -> [Net :: IMAP :: Address] | nil (21217.0) -
From を Net::IMAP::Address オブジェクトの配列で返します。
...From を Net::IMAP::Address オブジェクトの配列で返します。
エンベロープに存在しないときは nil を返します。... -
Net
:: SMTP # mailfrom(from _ addr) -> Net :: SMTP :: Response (12307.0) -
MAILFROM コマンドを送ります。
...MAILFROM コマンドを送ります。
通常は Net::SMTP#send_message, Net::SMTP#open_message_stream で
MAILFROM が送られるため利用する必要はないはずです。
@param from_addr 送信元メールアドレス... -
Gem
:: Format . from _ file _ by _ path(file _ path , security _ policy = nil) -> Gem :: Format (12301.0) -
@todo security_policy
...@todo security_policy
Gem ファイルのパスからデータを読み込んで、自身を初期化して返します。
@param file_path Gem ファイルへのパスを指定します。
@param security_policy ???... -
Gem
:: OldFormat . from _ file _ by _ path(file _ path) -> Gem :: OldFormat (12301.0) -
Gem ファイルのパスからデータを読み込んで、自身を初期化して返します。
...Gem ファイルのパスからデータを読み込んで、自身を初期化して返します。
@param file_path Gem ファイルへのパスを指定します。... -
Gem
:: StreamUI # choose _ from _ list(question , list) -> Array (12301.0) -
リストから回答を選択する質問をします。
...ら回答を選択する質問をします。
リストは質問の上に表示されます。
@param question 質問を指定します。
@param list 回答の選択肢を文字列の配列で指定します。
@return 選択肢の名称と選択肢のインデックスを要素とする配列... -
ObjectSpace
. # reachable _ objects _ from(obj) -> Array | nil (12225.0) -
obj から到達可能なすべてのオブジェクトを返します。マーク不能なオブジェ クトを指定した場合は nil を返します。本メソッドを使う事でメモリリークの 調査が行えます。
...ジェ
クトを指定した場合は nil を返します。本メソッドを使う事でメモリリークの
調査が行えます。
//emlist[例][ruby]{
# 配列クラス(Array)と 'a'、'b'、'c' に到達可能。
ObjectSpace.reachable_objects_from(['a', 'b', 'c'])
# => [Array, 'a', 'b', 'c'......だけです。
//emlist[例][ruby]{
# 配列クラス(Array)と v に到達可能。
ObjectSpace.reachable_objects_from([v = 'a', v, v])
# => [Array, 'a']
# 配列クラス(Array)と 3 つの異なる 'a' オブジェクトに到達可能。
ObjectSpace.reachable_objects_from(['a', 'a', 'a'])
# =......ーク不能なオブジェクト(true、false、nil、Symbol、
Fixnum、Flonum(即値の Float オブジェクト))を指定した場合は
nil を返します。
//emlist[例][ruby]{
# 1 はマーク不能
ObjectSpace.reachable_objects_from(1)
# => nil
//}
obj が内部でオブジェクトへ... -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator (12220.0) -
node から到達可能な強連結成分についてのイテレータです。
...h_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(node, &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| . . . } -> () (12220.0) -
node から到達可能な強連結成分についてのイテレータです。
...h_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(node, &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 , each _ child , id _ map={} , stack=[]) -> Enumerator (12220.0) -
node から到達可能な強連結成分についてのイテレータです。
...each_child でグラフを表します。
返す値は規定されていません。
TSort.each_strongly_connected_component_fromはTSortをincludeして
グラフを表現する必要のないクラスメソッドです。
@param node ノードを指定します。
@param each_child 引数で......価するcallメソッ
ドを持つオブジェクトを指定します。
//emlist[使用例][ruby]{
require 'tsort'
graph = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
each_child = lambda {|n, &b| graph[n].each(&b) }
TSort.each_strongly_connected_component_from(1, each_child) {|scc|
p......scc
}
# => [4]
# [2, 3]
# [1]
//}
@see TSort#each_strongly_connected_component_from... -
TSort
. each _ strongly _ connected _ component _ from(node , each _ child , id _ map={} , stack=[]) {|nodes| . . . } -> () (12220.0) -
node から到達可能な強連結成分についてのイテレータです。
...each_child でグラフを表します。
返す値は規定されていません。
TSort.each_strongly_connected_component_fromはTSortをincludeして
グラフを表現する必要のないクラスメソッドです。
@param node ノードを指定します。
@param each_child 引数で......価するcallメソッ
ドを持つオブジェクトを指定します。
//emlist[使用例][ruby]{
require 'tsort'
graph = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
each_child = lambda {|n, &b| graph[n].each(&b) }
TSort.each_strongly_connected_component_from(1, each_child) {|scc|
p......scc
}
# => [4]
# [2, 3]
# [1]
//}
@see TSort#each_strongly_connected_component_from...