668件ヒット
[1-100件を表示]
(0.238秒)
ライブラリ
- ビルトイン (184)
- fiddle (22)
-
irb
/ ext / use-loader (22) -
net
/ http (33) - open-uri (22)
- optparse (22)
- pathname (66)
- psych (44)
-
rexml
/ document (22) - set (11)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
syslog
/ logger (77) - tsort (74)
- uri (33)
クラス
- Array (19)
- Bignum (3)
- Class (11)
-
Fiddle
:: Pointer (22) - Fixnum (3)
- Integer (53)
- Method (11)
- Module (5)
-
Net
:: HTTP (22) - NilClass (11)
- Object (11)
- OptionParser (22)
- Pathname (66)
- Proc (13)
-
Process
:: Status (11) -
Psych
:: Handler (44) -
REXML
:: Text (22) - Set (11)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - String (22)
-
Syslog
:: Logger (77) -
URI
:: MailTo (33) - UnboundMethod (11)
モジュール
-
IRB
:: ExtendCommandBundle (22) -
Net
:: HTTPHeader (11) -
OpenURI
:: OpenRead (22) - TSort (74)
キーワード
- -@ (11)
- [] (21)
- add (11)
- alias (11)
- allbits? (7)
- anybits? (7)
- arity (22)
- debug (11)
-
each
_ line (22) -
each
_ strongly _ connected _ component (21) -
each
_ strongly _ connected _ component _ from (21) - error (11)
- fatal (11)
- foreach (18)
- headers (11)
- info (11)
- initialize (11)
- intersection (11)
-
irb
_ load (11) -
irb
_ require (11) - lambda? (11)
- new (11)
- nobits? (7)
-
on
_ head (11) -
on
_ tail (11) - open (44)
- opendir (22)
- out (12)
- pack (19)
- parameters (2)
- post (22)
- pushdir (6)
- ref (11)
-
ruby2
_ keywords (5) - scalar (11)
-
set
_ form _ data (11) -
start
_ mapping (11) -
start
_ sequence (11) -
strongly
_ connected _ components (11) - sum (11)
-
to
_ mailtext (11) -
to
_ rfc822text (11) -
to
_ s (11) -
tsort
_ each (21) - unknown (11)
- unpack (11)
- value (11)
- warn (11)
検索結果
先頭5件
-
Integer
# &(other) -> Integer (24313.0) -
ビット二項演算子。論理積を計算します。
...ビット二項演算子。論理積を計算します。
@param other 数値
//emlist[][ruby]{
1 & 1 # => 1
2 & 3 # => 2
//}... -
Bignum
# &(other) -> Fixnum | Bignum (21413.0) -
ビット二項演算子。論理積を計算します。
...ビット二項演算子。論理積を計算します。
@param other 数値
1 & 1 #=> 1
2 & 3 #=> 2... -
Fixnum
# &(other) -> Fixnum | Bignum (21413.0) -
ビット二項演算子。論理積を計算します。
...ビット二項演算子。論理積を計算します。
@param other 数値
1 & 1 #=> 1
2 & 3 #=> 2... -
Process
:: Status # &(other) -> Integer (21323.0) -
self.to_i & other と同じです。 このメソッドは後方互換性のためにあります。
...self.to_i & other と同じです。
このメソッドは後方互換性のためにあります。
@param other 自身との & 演算をしたい整数を指定します。... -
NilClass
# &(other) -> false (21225.0) -
常に false を返します。
...常に false を返します。
@param other 論理積を行なう式です
//emlist[例][ruby]{
nil & true # => false
nil & false # => false
nil & nil # => false
nil & "a" # => false
//}... -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (18302.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
...現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute... -
IRB
:: ExtendCommandBundle # irb _ require(*opts , &b) -> bool (18202.0) -
現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。
...現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。
@see IRB::ExtendCommand::Require#execute... -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator (15313.0) -
node から到達可能な強連結成分についてのイテレータです。
...
node から到達可能な強連結成分についてのイテレータです。
返す値は規定されていません。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//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.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| . . . } -> () (15313.0) -
node から到達可能な強連結成分についてのイテレータです。
...
node から到達可能な強連結成分についてのイテレータです。
返す値は規定されていません。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//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.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... -
Pathname
# opendir -> Dir (12317.0) -
Dir.open(self.to_s, &block) と同じです。
...Dir.open(self.to_s, &block) と同じです。
@see Dir.open... -
Psych
:: Handler # start _ sequence(anchor , tag , implicit , style) -> () (12307.0) -
sequence の開始を見付けたときに呼び出されます。
...sequence の開始を見付けたときに呼び出されます。
anchor には sequence に関連付けられた anchor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。
tag には sequence に関連付けられた tag の名前が文字列で渡......には nil が渡されます。
implicit には sequence が implicit に開始されたかどうかが
真偽値で渡されます。
style には sequence の style が整数値で渡されます。以下のいずれか
です。
* Psych::Nodes::Sequence::BLOCK
* Psych::Nodes::Sequence::FLO......W
必要に応じてこのメソッドを override してください。
@param anchor 関連付けられた anchor の名前
@param tag タグ名
@param implicit sequence が implicit に開始されかどうか
@param style sequence のスタイル
=== Example
以下の YAML ドキュメント...