ライブラリ
- ビルトイン (358)
-
cgi
/ core (55) -
cgi
/ session (33) -
cgi
/ session / pstore (11) - csv (231)
- dbm (11)
- drb (33)
- gdbm (11)
- irb (11)
- json (242)
-
json
/ add / bigdecimal (22) -
json
/ add / complex (22) -
json
/ add / date (22) -
json
/ add / date _ time (22) -
json
/ add / exception (22) -
json
/ add / ostruct (22) -
json
/ add / range (22) -
json
/ add / rational (22) -
json
/ add / regexp (22) -
json
/ add / struct (22) -
json
/ add / symbol (22) -
json
/ add / time (22) - mkmf (11)
-
net
/ http (33) -
net
/ imap (33) - open-uri (22)
- openssl (55)
- optparse (66)
- rbconfig (33)
-
rbconfig
/ sizeof (22) -
rdoc
/ context (22) -
rdoc
/ markup / to _ html _ crossref (11) -
rdoc
/ top _ level (11) -
rexml
/ document (33) - rubygems (22)
-
rubygems
/ command (22) -
rubygems
/ config _ file (22) -
rubygems
/ dependency _ installer (11) -
rubygems
/ security (11) -
rubygems
/ specification (22) - tsort (53)
-
webrick
/ accesslog (11) -
webrick
/ cgi (11) -
webrick
/ config (33) -
webrick
/ httpresponse (22) -
webrick
/ https (11) -
webrick
/ server (11) -
webrick
/ ssl (22)
クラス
- Array (11)
- BigDecimal (22)
- CGI (22)
-
CGI
:: Session :: FileStore (11) -
CGI
:: Session :: MemoryStore (11) -
CGI
:: Session :: NullStore (11) -
CGI
:: Session :: PStore (11) - CSV (209)
-
CSV
:: Table (22) - Complex (22)
- DBM (11)
-
DRb
:: DRbServer (22) - Data (2)
- Date (22)
- DateTime (22)
-
Encoding
:: Converter (44) - Exception (22)
- GDBM (11)
-
Gem
:: Command (22) -
Gem
:: ConfigFile (22) -
Gem
:: DependencyInstaller (11) -
Gem
:: Specification (22) - Hash (44)
-
JSON
:: Parser (11) -
JSON
:: State (44) - Module (5)
-
Net
:: HTTP (11) -
Net
:: HTTPResponse (22) -
Net
:: IMAP (33) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: X509 :: Extension (11) -
OpenSSL
:: X509 :: ExtensionFactory (33) - OpenStruct (22)
- OptionParser (44)
- Proc (5)
-
RDoc
:: Context (22) -
RDoc
:: Markup :: ToHtmlCrossref (11) -
RDoc
:: Options (11) -
RDoc
:: TopLevel (11) -
REXML
:: Document (11) -
REXML
:: Element (22) - Range (22)
- Rational (33)
- Regexp (22)
-
RubyVM
:: InstructionSequence (55) - String (33)
- Struct (22)
- Symbol (22)
- Thread (11)
- Time (22)
-
WEBrick
:: CGI (11) -
WEBrick
:: GenericServer (11) -
WEBrick
:: HTTPResponse (22)
モジュール
-
CGI
:: QueryExtension (33) - DRb (11)
- GC (5)
- Gem (11)
-
Gem
:: QuickLoader (11) -
Gem
:: Security (11) - IRB (11)
- JSON (55)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (33) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (143)
- OpenURI (22)
-
OptionParser
:: Arguable (11) - RbConfig (55)
- TSort (53)
-
WEBrick
:: AccessLog (11) -
WEBrick
:: Config (66)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - BasicAuth (11)
-
CODE
_ CLASS _ TO _ OBJ (11) -
CODE
_ TO _ OBJ (11) - CONFIG (22)
- ConfigMap (11)
- Converters (11)
-
DEFAULT
_ OPTIONS (22) - DigestAuth (11)
- FileHandler (11)
- GemVersions (11)
- General (11)
- HTTP (11)
- HeaderConverters (11)
- LIMITS (11)
-
MAKEFILE
_ CONFIG (11) -
MARSHAL
_ FIELDS (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - OptionParser (11)
- SIZEOF (11)
-
SPECIFICATION
_ VERSION _ HISTORY (11) - SSL (11)
- [] (11)
-
add
_ class _ or _ module (22) -
build
_ self _ signed _ cert (11) - cgi (11)
-
cgi
/ session (11) - clone (11)
- compile (11)
-
compile
_ file (11) -
compile
_ option (11) - conf (11)
- config (44)
- context (11)
-
create
_ ext _ from _ hash (11) -
create
_ extension (22) -
deconstruct
_ keys (2) - dup (11)
- each (11)
-
each
_ strongly _ connected _ component (21) -
each
_ strongly _ connected _ component _ from (21) - encode (33)
- exec (44)
- fetch (22)
- files (11)
- foreach (11)
-
from
_ state (11) - generate (22)
-
generate
_ line (11) - getopts (55)
-
handle
_ interrupt (11) - header (22)
- instance (22)
- intersection (5)
-
irb
/ completion (11) -
json
_ create (143) - new (110)
- open (44)
-
open
_ uri (22) - optparse (11)
- out (11)
- params (11)
- parse (22)
-
parse
_ line (11) -
post
_ form (11) -
pretty
_ generate (11) -
pretty
_ unparse (11) -
primitive
_ convert (44) - rdoc (11)
- read (11)
- readlines (11)
- restore (44)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby2
_ keywords (10) -
set
_ params (11) -
setup
_ params (11) -
show
_ hash (11) - spawn (44)
-
start
_ service (11) - starttls (22)
-
strongly
_ connected _ components (11) - system (44)
- table (11)
-
to
_ a (11) -
to
_ csv (11) -
to
_ h (22) -
to
_ hash (11) -
to
_ json (231) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11) -
to
_ s (11) -
try
_ convert (11) - tsort (11)
- union (6)
-
unmatched
_ alias _ lists (11) - unparse (11)
-
verify
_ compaction _ references (5)
検索結果
先頭5件
-
Gem
:: ConfigFile # hash -> Hash (21302.0) -
設定ファイルの各項目のキーと値を要素として持つハッシュです。
設定ファイルの各項目のキーと値を要素として持つハッシュです。 -
Rational
# hash -> Integer (21207.0) -
自身のハッシュ値を返します。
...自身のハッシュ値を返します。
@return ハッシュ値を返します。
@see Object#hash... -
TSort
# each _ strongly _ connected _ component -> Enumerator (18406.0) -
TSort#strongly_connected_components メソッドのイテレータ版です。 obj.each_strongly_connected_component は obj.strongly_connected_components.each に似ていますが、 ブロックの評価中に obj が変更された場合は予期しない結果になる ことがあります。
...TSort#strongly_connected_components メソッドのイテレータ版です。
obj.each_strongly_connected_component は
obj.strongly_connected_components.each に似ていますが、
ブロックの評価中に obj が変更された場合は予期しない結果になる
ことがあります。......each_strongly_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.e......ach_strongly_connected_component{|nodes|
p nodes
}
#出力
#=> [4]
#=> [2, 3]
#=> [1]
//}
@see TSort.each_strongly_connected_component... -
TSort
# each _ strongly _ connected _ component {|nodes| . . . } -> nil (18406.0) -
TSort#strongly_connected_components メソッドのイテレータ版です。 obj.each_strongly_connected_component は obj.strongly_connected_components.each に似ていますが、 ブロックの評価中に obj が変更された場合は予期しない結果になる ことがあります。
...TSort#strongly_connected_components メソッドのイテレータ版です。
obj.each_strongly_connected_component は
obj.strongly_connected_components.each に似ていますが、
ブロックの評価中に obj が変更された場合は予期しない結果になる
ことがあります。......each_strongly_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.e......ach_strongly_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 (18406.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_ke......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| . . . } -> () (18406.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_ke......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
# strongly _ connected _ components -> Array (18406.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... -
Gem
:: Specification :: SPECIFICATION _ VERSION _ HISTORY -> Hash (15401.0) -
gemspec ファイルのバージョンの歴史を表す定数です。
gemspec ファイルのバージョンの歴史を表す定数です。 -
Hash
. try _ convert(obj) -> Hash | nil (15329.0) -
to_hash メソッドを用いて obj をハッシュに変換しようとします。
...to_hash メソッドを用いて obj をハッシュに変換しようとします。
何らかの理由で変換できないときには nil を返します。
このメソッドは引数がハッシュであるかどうかを調べるために使えます。
//emlist[][ruby]{
Hash.try_convert({......1=>2}) # => {1=>2}
Hash.try_convert("1=>2") # => nil
//}... -
Hash
# clone -> Hash (15308.0) -
selfと同じ内容を持つ新しいハッシュを返します。
...selfと同じ内容を持つ新しいハッシュを返します。
clone は frozen singleton-class の情報も含めてコピーしますが、
dup は内容と tainted だけをコピーします。
またどちらのメソッドも要素それ自体のコピーはしません。
つまり参......//emlist[例][ruby]{
h1 = {"have" => "have a","as" => "as a" }
h2 = h1.dup
h2["have"] = "has"
p h2 #=> {"have"=>"has", "as"=>"as a"}
p h1 #=> {"have"=>"have a", "as"=>"as a"}
h2["as"].upcase!
p h2 #=> {"have"=>"has", "as"=>"AS A"}
p h1 #=> {"have"=>"have a", "as"=>"AS A"}
//}
@see Object#clone......selfと同じ内容を持つ新しいハッシュを返します。
clone は frozen singleton-class の情報も含めてコピーしますが、
dup は内容だけをコピーします。
またどちらのメソッドも要素それ自体のコピーはしません。
つまり参照してい...