940件ヒット
[101-200件を表示]
(0.027秒)
種類
- インスタンスメソッド (616)
- 特異メソッド (136)
- 文書 (116)
- ライブラリ (48)
- クラス (24)
ライブラリ
- ビルトイン (316)
- csv (48)
- getoptlong (60)
-
net
/ http (24) - openssl (24)
-
rdoc
/ context (48) -
rubygems
/ config _ file (12) - set (18)
-
shell
/ builtin-command (6) -
shell
/ process-controller (6) - socket (12)
- thread (14)
- tsort (116)
-
webrick
/ httpresponse (12) - win32ole (48)
- zlib (12)
クラス
- BasicSocket (12)
- CSV (48)
-
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) -
Shell
:: ProcessController (6) - StopIteration (12)
-
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) -
WEBrick
:: HTTPResponse (12) -
WIN32OLE
_ EVENT (24) -
WIN32OLE
_ TYPE (12) -
Zlib
:: Deflate (12)
モジュール
- Enumerable (48)
-
Net
:: HTTPHeader (24) - TSort (116)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - ConditionVariable (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
WIN32OLE
_ EVENT (12) -
canonical
_ each (12) -
collect
_ concat (12) -
default
_ event _ sources (12) - deflate (12)
- deq (24)
-
each
_ active _ object (6) -
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 (46) -
each
_ strongly _ connected _ component _ from (46) -
flat
_ map (12) - foreach (24)
- getoptlong (12)
- handler= (12)
- intersection (12)
- optparse (12)
- ordering= (12)
- parse (24)
- pop (24)
- quiet= (12)
- recvmsg (12)
-
respond
_ to? (12) - result (12)
-
rinda
/ rinda (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) - shift (24)
-
slice
_ before (24) -
strongly
_ connected _ components (24) - tsort (12)
- union (12)
- 制御構造 (12)
検索結果
先頭5件
-
OpenSSL
:: Config # each {|section , key , value| . . . } -> self (21207.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| . . . } (21102.0) -
get メソッドのイテレータ版です。オプションとその引数の取得を 繰り返し行います。
...get メソッドのイテレータ版です。オプションとその引数の取得を
繰り返し行います。
@see GetoptLong#get... -
Gem
:: ConfigFile # each {|key , value| . . . } -> Hash (21101.0) -
設定ファイルの各項目のキーと値をブロック引数として与えられたブロックを評価します。
設定ファイルの各項目のキーと値をブロック引数として与えられたブロックを評価します。 -
OpenSSL
:: ASN1 :: Constructive # each {|item| . . . } -> self (21101.0) -
構造型のデータに含まれる各要素に対してブロックを 評価します。
構造型のデータに含まれる各要素に対してブロックを
評価します。 -
Shell
:: Concat # each(rs = nil) {|job| . . . } (21101.0) -
@todo
@todo -
WEBrick
:: HTTPResponse # each {|key , val| . . . } (21101.0) -
レスポンスのヘッダ名を key、内容を val としてブロックを評価します。
レスポンスのヘッダ名を key、内容を val としてブロックを評価します。 -
TSort
. strongly _ connected _ components(each _ node , each _ child) -> Array (18598.0) -
強連結成分の集まりを配列の配列として返します。 この配列は子から親に向かってソートされています。 各要素は強連結成分を表す配列です。
...結成分を表す配列です。
引数 each_node と each_child でグラフを表します。
@param each_node グラフ上の頂点をそれぞれ評価するcallメソッドを持つオブ
ジェクトを指定します。
@param each_child 引数で与えられた頂点の......[]}
each_node = lambda {|&b| g.each_key(&b) }
each_child = lambda {|n, &b| g[n].each(&b) }
p TSort.strongly_connected_components(each_node, each_child)
# => [[4], [2], [3], [1]]
g = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
each_node = lambda {|&b| g.each_key(&b) }
each_child = lambda {|n, &b| g[n].each(&......b) }
p TSort.strongly_connected_components(each_node, each_child)
# => [[4], [2, 3], [1]]
//}
@see TSort#strongly_connected_components... -
TSort
# strongly _ connected _ components -> Array (18324.0) -
強連結成分の集まりを配列の配列として返します。 この配列は子から親に向かってソートされています。 各要素は強連結成分を表す配列です。
...rt'
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=>[]}
p non_sort.strongly_connected_components
#=> [[4], [2, 3], [1]]
//}
@see TSort.strongly_connected_components... -
IO
# each(limit , chomp: false) -> Enumerator (18166.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
...IO.write("testfile", "This is line one,\nThis is line two,\nThis is line three,\nAnd so on...")
f = File.new("testfile")
f.each { |line| p "#{f.lineno}: #{line}" }
# => "1: This is line one,\n"
# "2: This is line two,\n"
# "3: This is line three,\n"
# "4: And so on..."
//}
//emlist[例: 行の区......testfile", "This is line one,This is line two,This is line three,And so on...")
f = File.new("testfile")
f.each(",", 10) { |line| p "#{f.lineno}: #{line}" }
# => "0: This is li"
# "1: ne one,"
# "1: This is li"
# "2: ne two,"
# "2: This is li"
# "3: ne three,"
# "3: And so on."
# "4: .."
//}
//emlis......uby]{
IO.write("testfile", "This is line one\nThis is line two\nThis is line three\nAnd so on...")
f = File.new("testfile")
f.each(chomp: true) { |line| p "#{f.lineno}: #{line}" }
# => "1: This is line one"
# "2: This is line two"
# "3: This is line three"
# "4: And so on..."
//}
@see $/, IO#gets... -
IO
# each(limit , chomp: false) {|line| . . . } -> self (18166.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
...IO.write("testfile", "This is line one,\nThis is line two,\nThis is line three,\nAnd so on...")
f = File.new("testfile")
f.each { |line| p "#{f.lineno}: #{line}" }
# => "1: This is line one,\n"
# "2: This is line two,\n"
# "3: This is line three,\n"
# "4: And so on..."
//}
//emlist[例: 行の区......testfile", "This is line one,This is line two,This is line three,And so on...")
f = File.new("testfile")
f.each(",", 10) { |line| p "#{f.lineno}: #{line}" }
# => "0: This is li"
# "1: ne one,"
# "1: This is li"
# "2: ne two,"
# "2: This is li"
# "3: ne three,"
# "3: And so on."
# "4: .."
//}
//emlis......uby]{
IO.write("testfile", "This is line one\nThis is line two\nThis is line three\nAnd so on...")
f = File.new("testfile")
f.each(chomp: true) { |line| p "#{f.lineno}: #{line}" }
# => "1: This is line one"
# "2: This is line two"
# "3: This is line three"
# "4: And so on..."
//}
@see $/, IO#gets...