2571件ヒット
[1-100件を表示]
(0.132秒)
種類
ライブラリ
- ビルトイン (135)
- objspace (12)
- openssl (12)
- psych (900)
-
rexml
/ document (348) -
shell
/ command-processor (6) - socket (72)
- tsort (222)
クラス
- Addrinfo (36)
- Enumerator (6)
-
File
:: Stat (24) - Object (12)
-
Psych
:: Handler (12) -
Psych
:: Nodes :: Alias (12) -
Psych
:: Nodes :: Document (120) -
Psych
:: Nodes :: Mapping (132) -
Psych
:: Nodes :: Node (72) -
Psych
:: Nodes :: Scalar (180) -
Psych
:: Nodes :: Sequence (132) -
Psych
:: Nodes :: Stream (84) -
Psych
:: Stream (24) -
Psych
:: TreeBuilder (12) -
Psych
:: Visitors :: YAMLTree (36) -
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (12) -
REXML
:: Child (12) -
REXML
:: Comment (12) -
REXML
:: DocType (12) -
REXML
:: Document (24) -
REXML
:: Element (60) -
REXML
:: Elements (24) -
REXML
:: Formatters :: Default (12) -
REXML
:: Instruction (12) -
REXML
:: Parent (48) -
REXML
:: Text (12) -
REXML
:: XMLDecl (12) -
REXML
:: XPath (24) -
RubyVM
:: AbstractSyntaxTree :: Node (49) -
Shell
:: CommandProcessor (6) - Socket (24)
モジュール
- ObjectSpace (12)
-
OpenSSL
:: OCSP (12) - Psych (48)
-
REXML
:: Node (60) -
RubyVM
:: AbstractSyntaxTree (30) -
Socket
:: Constants (12) - TSort (210)
キーワード
- ANY (48)
- AbstractSyntaxTree (7)
- BLOCK (24)
-
DOUBLE
_ QUOTED (12) - Document (12)
- FLOW (24)
- FOLDED (12)
- LITERAL (12)
- NODELEGATED (12)
- NoDelegateMethods (6)
- PLAIN (12)
-
SINGLE
_ QUOTED (12) - Stat (12)
- Stream (12)
-
TCP
_ NODELAY (24) - TSort (12)
- UTF16BE (12)
- UTF16LE (12)
- UTF8 (12)
- []= (36)
- anchor (48)
-
arg
_ add (12) -
arg
_ blk _ pass (12) -
arg
_ concat (12) -
arg
_ defined (12) -
arg
_ prepend (12) - aryset (12)
- assign (12)
-
assign
_ in _ cond (12) - assignable (12)
- attrset (12)
-
block
_ append (12) -
block
_ pass (12) -
call
_ op (12) -
call
_ trace _ func (12) - children (7)
-
clone
_ method (12) - compile (12)
- cond (12)
- cond0 (12)
- context (12)
- context= (12)
-
copy
_ node _ scope (12) -
count
_ nodes (12) - ctime (12)
- each (24)
-
each
_ strongly _ connected _ component (46) -
each
_ strongly _ connected _ component _ from (46) - encoding (12)
- encoding= (12)
-
ev
_ const _ defined (12) -
ev
_ const _ get (12) -
eval
_ node (12) -
find
_ first _ recursive (12) - finish (12)
- first (12)
-
first
_ column (7) -
first
_ lineno (7) - fixpos (12)
- foreach (24)
- getaddrinfo (24)
- gettable (12)
-
handle
_ rescue (12) -
here
_ document (12) -
heredoc
_ restore (12) - implicit (36)
- implicit= (36)
-
implicit
_ end (12) -
implicit
_ end= (12) -
index
_ in _ parent (12) - ino (12)
-
ins
_ methods _ i (12) -
ins
_ methods _ priv _ i (12) -
ins
_ methods _ prot _ i (12) - inspect (7)
-
is
_ defined (12) -
last
_ column (7) -
last
_ lineno (7) -
list
_ append (12) -
list
_ concat (12) -
literal
_ append (12) -
literal
_ concat (12) -
literal
_ concat _ dstr (12) -
literal
_ concat _ list (12) -
literal
_ concat _ string (12) - logop (12)
- massign (12)
- match (12)
-
match
_ gen (12) -
module
_ setup (12) - new (84)
-
new
_ call (12) -
new
_ fcall (12) -
new
_ super (12) -
newline
_ node (12) -
next
_ sibling (12) -
next
_ sibling _ node (12) -
node
_ assign (12) -
node
_ type (108) - nodeline (12)
- nodetype (12)
- of (10)
- parent? (24)
- parse (22)
-
parse
_ file (22) -
parse
_ stream (24) -
parse
_ string (12) - produce (6)
- quoted (12)
- quoted= (12)
-
range
_ op (12) -
rb
_ add _ method (12) -
rb
_ backref _ error (12) -
rb
_ call0 (12) -
rb
_ compile _ cstr (12) -
rb
_ compile _ file (12) -
rb
_ compile _ string (12) -
rb
_ eval (12) -
rb
_ get _ method _ body (12) -
rb
_ node _ newnode (12) -
ret
_ args (12) -
rexml
/ parsers / ultralightparser (12) - root (24)
-
root
_ node (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) - scalar (12)
-
search
_ method (12) - start (36)
-
strongly
_ connected _ components (24) - style (36)
- style= (36)
- superclass (12)
- tag (48)
- tag= (36)
-
tag
_ directives (12) -
tag
_ directives= (12) -
to
_ a (12) -
to
_ ruby (12) -
to
_ s (12) -
to
_ yaml (12) - transform (12)
- tree (12)
- tsort (36)
-
tsort
_ each (46) -
tsort
_ each _ child (12) -
tsort
_ each _ node (12) - type (7)
- value (12)
-
value
_ expr (12) - version (12)
- version= (12)
-
void
_ expr (12) -
void
_ stmts (12) - write (12)
- yaml (12)
-
yaml
_ tag (12) - yycompile (12)
検索結果
先頭5件
-
tsort (26144.0)
-
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
...tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
=== Example
//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
{1=>[2, 3],......=>[]}.tsort
#=> [3, 2, 1, 4]
{1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}.strongly_connected_components
#=> [[4], [2, 3], [1]]
//}
=== より現実的な例
非常に単純な `make' に似たツールは以下のように実装できます。
//emlist[][ruby]{
require 'tsort'
class Make
def initialize......default = []
end
def rule(outputs, inputs=[], &block)
triple = [outputs, inputs, block]
outputs.each {|f| @dep[f] = [triple]}
@dep[triple] = inputs
end
def build(target)
each_strongly_connected_component_from(target) {|ns|
if ns.length != 1
fs = ns.delete_if {... -
RubyVM
:: AbstractSyntaxTree :: Node (24000.0) -
RubyVM::AbstractSyntaxTree.parse によって作られる抽象構文木を表すクラスです。
...RubyVM::AbstractSyntaxTree.parse によって作られる抽象構文木を表すクラスです。
このクラスは MRI の実装の詳細を表します。... -
TSort
# tsort _ each _ node {|node| . . . } -> () (15308.0) -
TSort で拡張されるクラスで定義されていなければならないメソッドです。
...
TSort で拡張されるクラスで定義されていなければならないメソッドです。
tsort_each_node is used to iterate for all nodes over a graph.
@raise NotImplementedError TSort で拡張されるクラスで定義されていない場合発生します。... -
REXML
:: Node # next _ sibling _ node -> REXML :: Node | nil (15302.0) -
次の兄弟ノードを返します。
次の兄弟ノードを返します。
次の兄弟ノードが存在しない場合(ノードがルートである場合や、
最後のノードである場合)は nil を返します。 -
REXML
:: DocType # node _ type -> Symbol (15201.0) -
Symbol :doctype を返します。
...Symbol :doctype を返します。... -
NODE * rb
_ node _ newnode(enum node _ type type , NODE *a0 , NODE *a1 , NODE *a2) (12900.0) -
ノードタイプが type で a0 a1 a2 を 要素に持つノードを生成し、返します。
...ノードタイプが type で a0 a1 a2 を
要素に持つノードを生成し、返します。... -
static enum node
_ type nodetype(node) (12416.0) -
node の種類を返します。 デバッグ用です。
...
node の種類を返します。
デバッグ用です。... -
ObjectSpace
. # count _ nodes(result _ hash = nil) -> Hash (12318.0) -
ノードの種類ごとの数を格納したハッシュを返します。
...sult_hash 戻り値のためのハッシュを指定します。省略した場合は新
しくハッシュを作成します。result_hash の内容は上書き
されます。プローブ効果を避けるために使用します。
@raise TypeError result_ha......ォー
マンスやメモリ管理に興味のある C Ruby の開発者向けのものです。
//emlist[例][ruby]{
ObjectSpace.count_nodes
# => {:NODE_METHOD=>2027, :NODE_FBODY=>1927, :NODE_CFUNC=>1798, ...}
//}
戻り値のハッシュは処理系に依存します。これは将来変更に... -
REXML
:: Element # root _ node -> REXML :: Document | REXML :: Node (12314.0) -
self が属する文書のルートノードを返します。
...(REXML::Document) オブジェクトが
返されます。
その要素が属する REXML::Document オブジェクトが存在しない
場合は木構造上のルートノードが返されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root>
<children>
<....../children>
</root>
EOS
children = doc.get_elements("/root/children").first
children.name # => "children"
children.root_node == doc # => true
grandchildren = doc.get_elements("/root/children/grandchildren").first
grandchildren.name # => "grandchildren"
grandchildren.root_node == doc # => true
//}...