688件ヒット
[1-100件を表示]
(0.098秒)
ライブラリ
- ビルトイン (311)
-
cgi
/ core (11) -
cgi
/ session (11) - continuation (22)
-
fiddle
/ import (11) - json (22)
- matrix (22)
- monitor (22)
- openssl (33)
- optparse (22)
- pstore (11)
- psych (22)
-
rubygems
/ config _ file (11) - thread (2)
- thwait (6)
- tsort (42)
-
webrick
/ config (11) -
webrick
/ httpresponse (22) - win32ole (11)
クラス
- Array (88)
-
CGI
:: Session (11) - Continuation (22)
-
Gem
:: ConfigFile (11) - Hash (11)
-
JSON
:: State (11) - Matrix (11)
- Module (16)
-
OpenSSL
:: Config (22) -
OpenSSL
:: OCSP :: BasicResponse (11) - OptionParser (22)
- PStore (11)
-
Psych
:: Handler (11) -
Psych
:: Nodes :: Document (11) - String (33)
- ThreadsWait (6)
- Vector (11)
-
WEBrick
:: HTTPResponse (22) -
WIN32OLE
_ TYPE (11)
モジュール
-
CGI
:: QueryExtension (11) -
Fiddle
:: Importer (11) - JSON (11)
- Kernel (154)
- MonitorMixin (11)
- TSort (42)
-
WEBrick
:: Config (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - ConditionVariable (11)
- FileHandler (11)
- MonitorMixin (11)
-
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (3) - []= (11)
- call (11)
-
caller
_ locations (22) - combination (22)
- component (22)
-
const
_ source _ location (5) - constants (11)
-
default
_ event _ sources (11) -
each
_ strongly _ connected _ component _ from (42) - encode (33)
- exec (44)
-
mon
_ enter (11) - new (22)
-
next
_ wait (6) - optparse (11)
- permutation (22)
-
repeated
_ combination (22) -
repeated
_ permutation (22) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) - section (11)
- sign (11)
- spawn (44)
-
start
_ document (11) - summarize (22)
- system (44)
- transaction (11)
- tsort (11)
検索結果
先頭5件
-
Continuation
# [](*ret) -> () (24200.0) -
self が記憶した状態を継続します。引数は そのまま Kernel.#callcc の戻り値になります。
self が記憶した状態を継続します。引数は そのまま
Kernel.#callcc の戻り値になります。
@param ret 継続に復帰した時に返す値を指定します。 -
JSON
. [](object , options) -> object (21300.0) -
文字列のように扱えるデータを受け取った場合は Ruby のオブジェクトに変換して返します。 そうでない場合は JSON に変換して返します。
...JSON に変換して返します。
@param object 任意のオブジェクト指定可能です。
@param options JSON.#parse, JSON.#generate の説明を参照してください。
//emlist[例][ruby]{
require "json"
string=<<JSON
{ "a":1, "b":2, "c":3 }
JSON
hash = { a: 1, b: 2, c: 3 }
JSON[s......# => Hash
JSON[string] # => {"a"=>1, "b"=>2, "c"=>3}
JSON[string, symbolize_names: true] # => {:a=>1, :b=>2, :c=>3}
JSON[hash].class # => String
JSON[hash] # => "{\"a\":1,\"b\":2,\"c\":3}"
//}
@see JSON.#parse, JSON.#generate... -
CGI
:: QueryExtension # [](key) -> Array (21200.0) -
文字列 key に対応するパラメータを配列で返します。 key に対応するパラメータが見つからなかった場合は、nil を返します。(CGI#paramsと等価です)
文字列 key に対応するパラメータを配列で返します。
key に対応するパラメータが見つからなかった場合は、nil を返します。(CGI#paramsと等価です)
フォームから入力された値や、URL に埋め込まれた QUERY_STRING のパース結果の取得などに使用します。
@param key キーを文字列で指定します。 -
CGI
:: Session # [](key) -> object (21200.0) -
指定されたキーの値を返します。 値が設定されていなければ nil を返します。
指定されたキーの値を返します。
値が設定されていなければ nil を返します。
@param key キーを指定します。 -
Gem
:: ConfigFile # [](key) -> object (21200.0) -
引数で与えられたキーに対応する設定情報を返します。
引数で与えられたキーに対応する設定情報を返します。
@param key 設定情報を取得するために使用するキーを指定します。 -
JSON
:: State # [](name) -> object (21200.0) -
Return the value returned by method name.
Return the value returned by method name. -
OpenSSL
:: Config # [](sec) -> {String => String} (21200.0) -
指定したセクションの設定情報をハッシュで返します。
...指定したセクションの設定情報をハッシュで返します。
ハッシュのキーが設定情報のキー、ハッシュの値が対応する情報となります。
section は obsolete です。[] を使ってください。
@param sec セクションを表す文字列... -
WEBrick
:: HTTPResponse # [](field) -> String (21200.0) -
レスポンスのヘッダの該当する内容を文字列で返します。
レスポンスのヘッダの該当する内容を文字列で返します。
@param field ヘッダ名を文字列で指定します。大文字と小文字を区別しません。
p res['date'] #=> "Sat, 27 Oct 2007 08:53:03 GMT" -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator (18500.0) -
node から到達可能な強連結成分についてのイテレータです。
...node から到達可能な強連結成分についてのイテレータです。
返す値は規定されていません。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//emlist[例 到達可能なノードを表示......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| . . . } -> () (18500.0) -
node から到達可能な強連結成分についてのイテレータです。
...node から到達可能な強連結成分についてのイテレータです。
返す値は規定されていません。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//emlist[例 到達可能なノードを表示......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...