909件ヒット
[1-100件を表示]
(0.082秒)
ライブラリ
- objspace (11)
- psych (737)
-
rexml
/ document (33) -
rexml
/ parsers / ultralightparser (11) - tsort (106)
クラス
-
Psych
:: Handler (33) -
Psych
:: Nodes :: Alias (22) -
Psych
:: Nodes :: Document (66) -
Psych
:: Nodes :: Mapping (88) -
Psych
:: Nodes :: Node (88) -
Psych
:: Nodes :: Scalar (143) -
Psych
:: Nodes :: Sequence (88) -
Psych
:: Nodes :: Stream (66) -
Psych
:: Stream (22) -
Psych
:: TreeBuilder (11) -
Psych
:: Visitors :: YAMLTree (33) -
REXML
:: Document (11) -
REXML
:: Element (22) -
REXML
:: Parsers :: UltraLightParser (11)
モジュール
- ObjectSpace (11)
- Psych (44)
- TSort (106)
キーワード
- ANY (44)
- BLOCK (22)
-
DOUBLE
_ QUOTED (11) - FLOW (22)
- FOLDED (11)
- LITERAL (11)
- PLAIN (11)
-
SINGLE
_ QUOTED (11) - Sequence (11)
- UTF16BE (11)
- UTF16LE (11)
- UTF8 (11)
- YAMLTree (11)
- anchor (44)
- children (11)
- context (11)
-
count
_ nodes (11) - each (22)
-
each
_ strongly _ connected _ component (42) -
each
_ strongly _ connected _ component _ from (42) - encoding (11)
- finish (11)
- implicit (33)
-
implicit
_ end (11) - new (88)
- parse (22)
-
parse
_ file (11) -
parse
_ stream (22) - plain (11)
- quoted (11)
-
rexml
/ parsers / ultralightparser (11) - root (22)
- scalar (11)
- start (33)
-
start
_ mapping (11) -
start
_ sequence (11) - style (33)
- tag (44)
-
tag
_ directives (11) -
to
_ ruby (11) -
to
_ yaml (11) - transform (11)
- tree (11)
-
tsort
_ each _ child (11) -
tsort
_ each _ node (11) - value (11)
- version (11)
- yaml (11)
検索結果
先頭5件
- Psych
:: Nodes - ObjectSpace
. # count _ nodes(result _ hash = nil) -> Hash - Psych
:: Nodes :: Stream . new(encoding = Psych :: Nodes :: Stream :: UTF8) -> Psych :: Nodes :: Stream - Psych
:: Nodes :: Scalar . new(value , anchor=nil , tag=nil , plain=true , quoted=false , style=ANY) -> Psych :: Nodes:Scalar - Psych
:: Nodes :: Mapping . new(anchor=nil , tag=nil , implicit=true , style=BLOCK) -> Psych :: Nodes :: Mapping
-
Psych
:: Nodes (18150.0) -
Psych が中間データとして利用している AST (Abstract Syntax Tree) に 関するモジュール。
...間的な AST に変換してから
それを YAML ドキュメントに変換します。
YAML AST の各ノードのクラスはすべて Psych::Nodes の下にあります。
AST を手作業で構築して、visitor を使って AST を YAML ドキュメントや
Ruby のオブジェクトに......持つリストの AST を構築しています。
# Create our nodes
stream = Psych::Nodes::Stream.new
doc = Psych::Nodes::Document.new
seq = Psych::Nodes::Sequence.new
scalar = Psych::Nodes::Scalar.new('foo')
# Build up our tree
stream.children << doc
doc.children << seq......eam.to_yaml => "---\n- foo\n"
Ruby のオブジェクトに変換するためには以下のようにします。
stream.to_ruby => [["foo"]]
=== YAML AST 仕様
正しい YAML AST は Psych::Nodes::Stream ノードが
木のルートでなければなりません。Psych::Nodes::Stream ノー... -
ObjectSpace
. # count _ nodes(result _ hash = nil) -> Hash (6207.0) -
ノードの種類ごとの数を格納したハッシュを返します。
...。パフォー
マンスやメモリ管理に興味のある C Ruby の開発者向けのものです。
//emlist[例][ruby]{
ObjectSpace.count_nodes
# => {:NODE_METHOD=>2027, :NODE_FBODY=>1927, :NODE_CFUNC=>1798, ...}
//}
戻り値のハッシュは処理系に依存します。これは将来... -
Psych
:: Nodes :: Stream . new(encoding = Psych :: Nodes :: Stream :: UTF8) -> Psych :: Nodes :: Stream (3336.0) -
Psych::Nodes::Stream オブジェクトを生成して返します。
...Psych::Nodes::Stream オブジェクトを生成して返します。
encoding には stream に使われるエンコーディングを指定します。
以下のいずれかを指定します。
* Psych::Nodes::Node::UTF8
* Psych::Nodes::Node::UTF16BE
* Psych::Nodes::Node::UTF16LE
@param... -
Psych
:: Nodes :: Scalar . new(value , anchor=nil , tag=nil , plain=true , quoted=false , style=ANY) -> Psych :: Nodes:Scalar (3237.0) -
Scalar オブジェクトを生成します。
...。
style は次の値のいずれかです。
* Psych::Nodes::Scalar::ANY
* Psych::Nodes::Scalar::PLAIN
* Psych::Nodes::Scalar::SINGLE_QUOTED
* Psych::Nodes::Scalar::DOUBLE_QUOTED
* Psych::Nodes::Scalar::LITERAL
* Psych::Nodes::Scalar::FOLDED
@param value スカラー値
@param anchor... -
Psych
:: Nodes :: Mapping . new(anchor=nil , tag=nil , implicit=true , style=BLOCK) -> Psych :: Nodes :: Mapping (3219.0) -
新たな mapping オブジェクトを生成します。
...キュメント上の style を整数で指定します。以下のいずれ
かを指定できます。
* Psych::Nodes::Mapping::ANY
* Psych::Nodes::Mapping::BLOCK
* Psych::Nodes::Mapping::FLOW
@param anchor mapping に付加された anchor
@param tag mapping に付加された tag
@param i... -
Psych
:: Nodes :: Sequence . new(anchor=nil , tag=nil , implicit=true , style=BLOCK) -> Psych :: Nodes :: Sequence (3219.0) -
新たな sequence オブジェクトを生成します。
...ュメント上の style を整数で指定します。以下のいずれ
かを指定できます。
* Psych::Nodes::Sequence::ANY
* Psych::Nodes::Sequence::BLOCK
* Psych::Nodes::Sequence::FLOW
@param anchor sequence に付加された anchor
@param tag sequence に付加された tag
@param... -
Psych
:: Nodes :: Document . new(version=[] , tag _ directives=[] , implicit=false) -> Psych :: Nodes :: Document (3207.0) -
Document オブジェクトを生成します。
...YAML 1.1 のドキュメントで、
tag directive を1つ持ち、 implicit にドキュメントが開始
している Document オブジェクトを生成しています。
Psych::Nodes::Document.new(
[1,1],
tenderlovemaking.com,2009:",
true)
@see Psych::Handler#start_document... -
Psych
:: Nodes :: Alias . new(anchor) -> Psych :: Nodes :: Alias (3201.0) -
新たな Alias オブジェクトを生成します。
新たな Alias オブジェクトを生成します。
anchor で指す先の anchor を指定します。
@param anchor 指す先の anchor -
Psych
:: Nodes :: Document # root -> Psych :: Nodes :: Node (3201.0) -
ルートノードを返します。
ルートノードを返します。 -
Psych
:: Nodes :: Node # children -> [Psych :: Nodes :: Node] (3201.0) -
子ノードの集合を配列で返します。
子ノードの集合を配列で返します。