ライブラリ
- psych (1925)
- yaml (11)
-
yaml
/ store (19)
クラス
- Module (8)
- Object (33)
-
Psych
:: Emitter (77) -
Psych
:: Handler (132) -
Psych
:: Nodes :: Alias (33) -
Psych
:: Nodes :: Document (110) -
Psych
:: Nodes :: Mapping (132) -
Psych
:: Nodes :: Node (88) -
Psych
:: Nodes :: Scalar (209) -
Psych
:: Nodes :: Sequence (132) -
Psych
:: Nodes :: Stream (77) -
Psych
:: Parser (99) -
Psych
:: Parser :: Mark (33) -
Psych
:: ScalarScanner (33) -
Psych
:: Stream (44) -
Psych
:: SyntaxError (66) -
Psych
:: TreeBuilder (22) -
Psych
:: Visitors :: YAMLTree (110) -
YAML
:: Store (19)
キーワード
- << (11)
- ANY (55)
- Alias (11)
- BLOCK (22)
- BadAlias (11)
-
DOUBLE
_ QUOTED (11) - Document (11)
- Emitter (11)
- Exception (11)
- FLOW (22)
- FOLDED (11)
- Handler (11)
-
LIBYAML
_ VERSION (11) - LITERAL (11)
- Mapping (11)
- Mark (11)
-
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Node (11)
- Nodes (11)
- Omap (11)
- PLAIN (11)
- Parser (11)
- Psych (11)
-
SINGLE
_ QUOTED (11) - Scalar (11)
- ScalarScanner (11)
- Sequence (11)
- Set (11)
- Stream (22)
- SyntaxError (11)
- TreeBuilder (11)
- UTF16BE (22)
- UTF16LE (22)
- UTF8 (22)
- VERSION (11)
- Visitor (11)
- Visitors (11)
- YAML (11)
- YAMLTree (11)
- alias (11)
- anchor (44)
- anchor= (44)
- canonical (11)
- canonical= (11)
- children (11)
- column (22)
- context (11)
- dump (22)
-
dump
_ stream (11) - each (22)
- empty (11)
- encoding (11)
- encoding= (11)
-
end
_ document (11) -
end
_ mapping (11) -
end
_ sequence (11) -
end
_ stream (11) - file (11)
- finish (22)
- finished (11)
- finished? (11)
- handler (11)
- handler= (11)
- implicit (33)
- implicit= (33)
-
implicit
_ end (11) -
implicit
_ end= (11) - indentation (11)
- indentation= (11)
- index (11)
-
libyaml
_ version (11) - line (22)
-
line
_ width (11) -
line
_ width= (11) - load (11)
-
load
_ documents (8) -
load
_ file (11) -
load
_ stream (22) - mark (11)
- new (151)
- offset (11)
- parse (22)
-
parse
_ file (11) -
parse
_ stream (22) -
parse
_ time (11) - parser (11)
- plain (11)
- plain= (11)
- problem (11)
-
psych
_ to _ yaml (11) -
psych
_ y (11) -
psych
_ yaml _ as (4) - push (11)
- quoted (11)
- quoted= (11)
- root (22)
-
safe
_ load (17) - scalar (11)
- start (33)
-
start
_ document (11) -
start
_ mapping (11) -
start
_ sequence (11) -
start
_ stream (11) - started (11)
- started? (11)
- streaming? (11)
- style (33)
- style= (33)
- tag (44)
- tag= (33)
-
tag
_ directives (11) -
tag
_ directives= (11) -
to
_ json (11) -
to
_ ruby (11) -
to
_ yaml (22) - tokenize (11)
- transform (11)
- tree (11)
- value (11)
- value= (11)
- version (11)
- version= (11)
- y (11)
- yaml (22)
-
yaml
_ as (4) -
yaml
_ tag (11)
検索結果
先頭5件
-
Psych
. to _ json(o) -> String (17000.0) -
Ruby のオブジェクト o を JSON の文字列に変換します。
Ruby のオブジェクト o を JSON の文字列に変換します。
@param o 変換対象となるオブジェクト -
Psych
:: LIBYAML _ VERSION -> String (17000.0) -
libyaml のバージョン。
libyaml のバージョン。 -
Object
# psych _ to _ yaml(options = {}) -> String (14125.0) -
オブジェクトを YAML document に変換します。
...ョンを指定できます。
Psych.dump と同じなので詳しくはそちらを参照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予......定であるため、特別の事情がない限り to_yaml を用いてください。
@param options 出力オプション
@see Psych.dump... -
Kernel
# psych _ y(*objects) -> String (14113.0) -
objects を YAML document に変換します。
...のメソッドは irb 上でのみ定義されます。
syck に y メソッドがあるため、
psych_y が別名として定義されています。将来的に
syck が廃止された場合 psych_y は廃止
される予定であるため、特別の事情がない限り y を用いてくだ... -
Module
# psych _ yaml _ as(tag) -> () (14101.0) -
クラスと tag の間を関連付けます。
クラスと tag の間を関連付けます。
これによって tag 付けされた YAML ドキュメントを Ruby のオブジェクトに
変換したりその逆をしたりすることができます。
この method は deprecated です。 Object.yaml_tag を
かわりに使ってください。
@param tag 対象のクラスに関連付けるタグの文字列 -
Psych (14000.0)
-
yaml のバックエンドのためのモジュールです。
yaml のバックエンドのためのモジュールです。 -
Psych
:: Visitors :: YAMLTree . new(options = {} , emitter = Psych :: TreeBuilder . new , ss = Psych :: ScalarScanner . new) -> Psych :: Visitors :: YAMLTree (11333.0) -
YAMLTree オブジェクトを生成します。
...定します。
Psych.dump と同じオプションが指定できます。
emitter には AST の構築に使われる Psych::TreeBuilder オブジェクト
を渡します。
ss は Ruby の String が YAML document 上で quote が必要かどうか
を判定するための Psych::ScalarScanner......常デフォルトのものから変える必要はないでしょう。
@param options オプション
@param emitter AST の構築に使う Psych::TreeBuilder オブジェクト
@param ss 文字列に quite が必要かどうかを判定するための Psych::ScalarScanner オブジェクト... -
Psych
:: Nodes :: Stream . new(encoding = Psych :: Nodes :: Stream :: UTF8) -> Psych :: Nodes :: Stream (11236.0) -
Psych::Nodes::Stream オブジェクトを生成して返します。
...
Psych::Nodes::Stream オブジェクトを生成して返します。
encoding には stream に使われるエンコーディングを指定します。
以下のいずれかを指定します。
* Psych::Nodes::Node::UTF8
* Psych::Nodes::Node::UTF16BE
* Psych::Nodes::Node::UTF16LE
@param... -
Psych
:: Stream # start(encoding = Psych :: Nodes :: Stream :: UTF8) -> Psych :: Stream (11210.0) -
Ruby オブジェクトを YAML document に変換するための準備をします。
...Ruby オブジェクトを YAML document に変換するための準備をします。
変換された document は Psych::Stream.new で指定した
出力先に出力されます。
finish を呼び出すことで出力が完了します(finish を呼び出さないと
最後まで出力され... -
Psych
:: Stream # start(encoding = Psych :: Nodes :: Stream :: UTF8) {|em| . . . } -> Psych :: Stream (11210.0) -
Ruby オブジェクトを YAML document に変換するための準備をします。
...Ruby オブジェクトを YAML document に変換するための準備をします。
変換された document は Psych::Stream.new で指定した
出力先に出力されます。
finish を呼び出すことで出力が完了します(finish を呼び出さないと
最後まで出力され... -
Psych
:: Nodes (11166.0) -
Psych が中間データとして利用している AST (Abstract Syntax Tree) に 関するモジュール。
...Psych が中間データとして利用している AST (Abstract Syntax Tree) に
関するモジュール。
Psych.load によって YAML ドキュメントを Ruby オブジェクトに変換
するときには、一度中間的な AST に変換され、その AST が Ruby の
オブジェクト......。
逆向き、つまり Psych.dump で Ruby のオブジェクトを
YAML ドキュメントに変換するときには、中間的な AST に変換してから
それを YAML ドキュメントに変換します。
YAML AST の各ノードのクラスはすべて Psych::Nodes の下にありま......を1つ持つリストの 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...