別のキーワード
ライブラリ
- ビルトイン (74)
- json (11)
-
net
/ smtp (28) - prime (22)
- psych (11)
-
rubygems
/ dependency _ list (11) -
rubygems
/ format (22) -
rubygems
/ old _ format (22) -
rubygems
/ package / tar _ header (11) -
rubygems
/ source _ index (22) -
rubygems
/ specification (11) - tsort (21)
クラス
- File (11)
-
Gem
:: DependencyList (11) -
Gem
:: Format (22) -
Gem
:: OldFormat (22) -
Gem
:: Package :: TarHeader (11) -
Gem
:: SourceIndex (22) -
Gem
:: Specification (11) - Integer (11)
-
JSON
:: State (11) -
Net
:: SMTP (28) - Object (11)
- Prime (11)
- Proc (14)
-
RubyVM
:: InstructionSequence (18) - Struct (4)
- Thread (16)
- TracePoint (11)
モジュール
- TSort (21)
キーワード
- [] (1)
-
each
_ strongly _ connected _ component _ from (21) -
from
_ file _ by _ path (22) -
from
_ gems _ in (11) -
from
_ installed _ gems (11) -
from
_ io (22) -
from
_ prime _ division (11) -
from
_ source _ index (11) -
from
_ state (11) -
from
_ yaml (11) -
int
_ from _ prime _ division (11) -
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) - new (28)
- rename (11)
-
report
_ on _ exception (8) -
report
_ on _ exception= (8) - start (28)
-
yaml
_ tag (11)
検索結果
先頭5件
- Gem
:: Package :: TarHeader . from(stream) -> Gem :: Package :: TarHeader - Prime
. int _ from _ prime _ division(pd) -> Integer - TSort
. each _ strongly _ connected _ component _ from(node , each _ child , id _ map={} , stack=[]) -> Enumerator - TSort
. each _ strongly _ connected _ component _ from(node , each _ child , id _ map={} , stack=[]) {|nodes| . . . } -> () - Integer
. from _ prime _ division(pd) -> Integer
-
Gem
:: Package :: TarHeader . from(stream) -> Gem :: Package :: TarHeader (18102.0) -
stream から先頭 512 バイトを読み込んで Gem::Package::TarHeader の インスタンスを作成して返します。
stream から先頭 512 バイトを読み込んで Gem::Package::TarHeader の
インスタンスを作成して返します。
@param stream IO のように read メソッドを持つオブジェクトを指定します。 -
Prime
. int _ from _ prime _ division(pd) -> Integer (6124.0) -
Prime.instance.int_from_prime_division と同じです。
...Prime.instance.int_from_prime_division と同じです。
@param pd 整数のペアの配列を指定します。含まれているペアの第一要素は素因数を、
第二要素はその素因数の指数をあらわします。
@see Prime#int_from_prime_division... -
TSort
. each _ strongly _ connected _ component _ from(node , each _ child , id _ map={} , stack=[]) -> Enumerator (6121.0) -
node から到達可能な強連結成分についてのイテレータです。
...。
引数 node と each_child でグラフを表します。
返す値は規定されていません。
TSort.each_strongly_connected_component_fromはTSortをincludeして
グラフを表現する必要のないクラスメソッドです。
@param node ノードを指定します。
@param e......//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| . . . } -> () (6121.0) -
node から到達可能な強連結成分についてのイテレータです。
...。
引数 node と each_child でグラフを表します。
返す値は規定されていません。
TSort.each_strongly_connected_component_fromはTSortをincludeして
グラフを表現する必要のないクラスメソッドです。
@param node ノードを指定します。
@param e......//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... -
Integer
. from _ prime _ division(pd) -> Integer (6120.0) -
素因数分解された結果を元の数値に戻します。
...アの第一要素は素因数を、
第二要素はその素因数の指数をあらわします。
@see Prime#int_from_prime_division
//emlist[例][ruby]{
require 'prime'
Prime.int_from_prime_division([[2,2], [3,1]]) #=> 12
Prime.int_from_prime_division([[2,2], [3,2]]) #=> 36
//}... -
JSON
:: State . from _ state(options) -> JSON :: State (6120.0) -
与えられた options によって生成した JSON::State のインスタンスを返します。
...e.from_state(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指定][ruby]{
require "json"
json_state = JSON::State.from_state(indent: "\t")
# JSON を出力する何らかの処理を実行する
copy = JSON::State.from_... -
TSort
. each _ strongly _ connected _ component _ from(node , each _ child , id _ map={} , stack=[]) {|nodes| . . . } -> () (6120.0) -
node から到達可能な強連結成分についてのイテレータです。
...。
引数 node と each_child でグラフを表します。
返す値は規定されていません。
TSort.each_strongly_connected_component_fromはTSortをincludeして
グラフを表現する必要のないクラスメソッドです。
@param node ノードを指定します。
@param e......//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... -
Gem
:: SourceIndex . from _ installed _ gems(*deprecated) -> Gem :: SourceIndex (6108.0) -
与えられたパスをもとに、インスタンスを作成するファクトリメソッドです。
...与えられたパスをもとに、インスタンスを作成するファクトリメソッドです。
@param deprecated この引数は非推奨です。後方互換性のためにのみ提供されているので使用すべきではありません。
@see Gem::SourceIndex.from_gems_in... -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (6108.0) -
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
...りません。自分が変換したバイナリデータを使うべきです。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM::InstructionSequence.load_from_binary(binary).eval # => 3
//}
@see RubyVM::InstructionSequence#to_binary... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (6108.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary... -
Gem
:: DependencyList . from _ source _ index(src _ index) -> Gem :: DependencyList (6102.0) -
与えられた Gem::SourceIndex のインスタンスから自身を作成します。
与えられた Gem::SourceIndex のインスタンスから自身を作成します。
@param src_index Gem::SourceIndex を指定します。
@see Gem::SourceIndex