22件ヒット
[1-22件を表示]
(0.143秒)
ライブラリ
- psych (22)
クラス
-
Psych
:: Nodes :: Node (11) -
Psych
:: Parser (11)
検索結果
-
Psych
:: Parser # parse(yaml) -> self (27319.0) -
YAML ドキュメントをパースし、イベントハンドラに イベントを逐次通知します。
...
YAML ドキュメントをパースし、イベントハンドラに
イベントを逐次通知します。
@see Psych::Parser.new, Psych::Handler, Psych::Parser#handler... -
Psych
:: Nodes :: Node # tag -> String | nil (3037.0) -
ノードに付加されたタグを返します。
...されていない場合は nil を返します。
ast = Psych.parse(<<EOS)
---
- !!str a
- b
EOS
p ast.root.children[0].value # => "a"
p ast.root.children[0].tag # => "tag:yaml.org,2002:str"
p ast.root.children[1].value # => "b"
p ast.root.children[1].tag # => nil...