種類
ライブラリ
- ビルトイン (422)
-
cgi
/ core (72) -
cgi
/ session (36) -
cgi
/ session / pstore (12) - csv (303)
- date (4)
- dbm (12)
- drb (36)
- gdbm (12)
- irb (12)
- json (288)
-
json
/ add / bigdecimal (24) -
json
/ add / complex (24) -
json
/ add / date (24) -
json
/ add / date _ time (24) -
json
/ add / exception (24) -
json
/ add / ostruct (24) -
json
/ add / range (24) -
json
/ add / rational (24) -
json
/ add / regexp (24) -
json
/ add / struct (24) -
json
/ add / symbol (24) -
json
/ add / time (24) - mkmf (12)
-
net
/ http (36) -
net
/ imap (36) - open-uri (24)
- openssl (84)
- optparse (72)
- rbconfig (36)
-
rbconfig
/ sizeof (24) -
rdoc
/ context (36) -
rdoc
/ markup / to _ html _ crossref (12) -
rdoc
/ top _ level (12) -
rexml
/ document (48) - rubygems (24)
-
rubygems
/ command (24) -
rubygems
/ config _ file (24) -
rubygems
/ dependency _ installer (12) -
rubygems
/ security (12) -
rubygems
/ specification (24) - tsort (58)
-
webrick
/ accesslog (12) -
webrick
/ cgi (12) -
webrick
/ config (36) -
webrick
/ httpresponse (24) -
webrick
/ https (12) -
webrick
/ server (12) -
webrick
/ ssl (24)
クラス
- Array (13)
- BigDecimal (24)
- CGI (24)
-
CGI
:: Session :: FileStore (12) -
CGI
:: Session :: MemoryStore (12) -
CGI
:: Session :: NullStore (12) -
CGI
:: Session :: PStore (12) - CSV (276)
-
CSV
:: Row (3) -
CSV
:: Table (24) - Complex (24)
- DBM (12)
-
DRb
:: DRbServer (24) - Data (3)
- Date (26)
- DateTime (26)
-
Encoding
:: Converter (48) - Exception (24)
- GDBM (12)
-
Gem
:: Command (24) -
Gem
:: ConfigFile (24) -
Gem
:: DependencyInstaller (12) -
Gem
:: Specification (24) - Hash (48)
-
JSON
:: Parser (12) -
JSON
:: State (48) - MatchData (2)
- Module (12)
-
Net
:: HTTP (12) -
Net
:: HTTPResponse (24) -
Net
:: IMAP (36) -
OpenSSL
:: Config (12) -
OpenSSL
:: SSL :: SSLContext (12) -
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: ExtensionFactory (36) - OpenStruct (24)
- OptionParser (48)
- Proc (6)
-
RDoc
:: Context (36) -
RDoc
:: Markup :: ToHtmlCrossref (12) -
RDoc
:: Options (12) -
RDoc
:: TopLevel (12) -
REXML
:: Document (12) -
REXML
:: Element (36) - Range (24)
- Rational (36)
- Regexp (24)
-
RubyVM
:: InstructionSequence (72) - String (36)
- Struct (30)
- Symbol (24)
- Thread (12)
- Time (26)
-
WEBrick
:: CGI (12) -
WEBrick
:: GenericServer (12) -
WEBrick
:: HTTPResponse (24)
モジュール
-
CGI
:: QueryExtension (48) - DRb (12)
- GC (6)
- Gem (12)
-
Gem
:: QuickLoader (12) -
Gem
:: Security (12) - IRB (12)
- JSON (60)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (36) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (156)
- OpenURI (24)
-
OptionParser
:: Arguable (12) - RbConfig (60)
- TSort (58)
-
WEBrick
:: AccessLog (12) -
WEBrick
:: Config (72)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - BasicAuth (12)
-
CODE
_ CLASS _ TO _ OBJ (12) -
CODE
_ TO _ OBJ (12) - CONFIG (24)
- ConfigMap (12)
- Converters (12)
-
DEFAULT
_ OPTIONS (24) - DigestAuth (12)
- ExtensionFactory (12)
- FileHandler (12)
- GemVersions (12)
- General (12)
- HTTP (12)
- Hash (24)
- HeaderConverters (12)
- LIMITS (12)
-
MAKEFILE
_ CONFIG (12) -
MARSHAL
_ FIELDS (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) - OptionParser (12)
- SIZEOF (12)
-
SPECIFICATION
_ VERSION _ HISTORY (12) - SSL (12)
- [] (12)
- []= (12)
-
add
_ class _ or _ module (24) -
build
_ self _ signed _ cert (12) - cgi (12)
-
cgi
/ session (12) - clone (12)
- compile (12)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) - conf (12)
- config (48)
- context (12)
- context= (12)
-
create
_ ext _ from _ hash (12) -
create
_ extension (24) -
deconstruct
_ keys (20) - dup (12)
- each (12)
-
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - encode (36)
- exec (48)
- fetch (24)
- files (12)
- filter (36)
- foreach (24)
-
from
_ state (12) - generate (24)
-
generate
_ line (12) - getopts (60)
-
handle
_ interrupt (12) - header (24)
- instance (24)
- intersection (6)
-
irb
/ completion (12) -
json
_ create (156) - new (120)
- numhash (12)
- open (48)
-
open
_ uri (24) - optparse (12)
- out (12)
- params (12)
- params= (12)
- parse (24)
-
parse
_ line (12) -
post
_ form (12) -
pretty
_ generate (12) -
pretty
_ unparse (12) -
primitive
_ convert (48) - rdoc (12)
- read (12)
- readlines (12)
- restore (48)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby2
_ keywords (18) -
set
_ params (12) -
setup
_ params (12) -
show
_ hash (12) - spawn (48)
-
start
_ service (12) - starttls (24)
-
strongly
_ connected _ components (12) - system (48)
- table (12)
-
to
_ a (12) -
to
_ csv (12) -
to
_ h (24) -
to
_ hash (12) -
to
_ json (252) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ s (12) -
try
_ convert (12) - tsort (12)
- union (7)
-
unmatched
_ alias _ lists (12) -
unmatched
_ alias _ lists= (12) - unparse (12)
-
verify
_ compaction _ references (6)
検索結果
先頭5件
-
Gem
:: ConfigFile # hash -> Hash (21202.0) -
設定ファイルの各項目のキーと値を要素として持つハッシュです。
設定ファイルの各項目のキーと値を要素として持つハッシュです。 -
Rational
# hash -> Integer (21107.0) -
自身のハッシュ値を返します。
...自身のハッシュ値を返します。
@return ハッシュ値を返します。
@see Object#hash... -
TSort
# each _ strongly _ connected _ component -> Enumerator (18306.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 (18306.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 (18306.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......ach_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| . . . } -> () (18306.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......ach_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
# strongly _ connected _ components -> Array (18306.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 (15301.0) -
gemspec ファイルのバージョンの歴史を表す定数です。
gemspec ファイルのバージョンの歴史を表す定数です。 -
Hash
. try _ convert(obj) -> Hash | nil (15229.0) -
to_hash メソッドを用いて obj をハッシュに変換しようとします。
...to_hash メソッドを用いて obj をハッシュに変換しようとします。
何らかの理由で変換できないときには nil を返します。
このメソッドは引数がハッシュであるかどうかを調べるために使えます。
//emlist[][ruby]{
Hash.try_convert({......1=>2}) # => {1=>2}
Hash.try_convert("1=>2") # => nil
//}...