151件ヒット
[1-100件を表示]
(0.015秒)
別のキーワード
クラス
- Module (8)
-
Psych
:: Handler (44) -
Psych
:: Nodes :: Document (22) -
Psych
:: Nodes :: Mapping (22) -
Psych
:: Nodes :: Node (11) -
Psych
:: Nodes :: Scalar (22) -
Psych
:: Nodes :: Sequence (22)
キーワード
-
psych
_ yaml _ as (4) - scalar (11)
-
start
_ document (11) -
start
_ mapping (11) -
start
_ sequence (11) - tag= (33)
-
tag
_ directives (11) -
tag
_ directives= (11) -
yaml
_ as (4)
検索結果
先頭5件
-
Psych
:: Nodes :: Mapping # tag -> String|nil (18126.0) -
mapping に付加された tag を返します。
...mapping に付加された tag を返します。
@see Psych::Nodes::Mapping#tag=,
Psych::Nodes::Mapping.new... -
Psych
:: Nodes :: Scalar # tag -> String|nil (18126.0) -
scalar に付加された tag を返します。
...scalar に付加された tag を返します。
@see Psych::Nodes::Scalar#tag=,
Psych::Nodes::Scalar.new... -
Psych
:: Nodes :: Sequence # tag -> String|nil (18126.0) -
sequence に付加された tag を返します。
...sequence に付加された tag を返します。
@see Psych::Nodes::Sequence#tag=,
Psych::Nodes::Sequence.new... -
Psych
:: Nodes :: Node # tag -> String | nil (18122.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... -
Psych
:: Nodes :: Document # tag _ directives=(tags) (6232.0) -
tag directive の配列を設定します。
...tag directive の配列を設定します。
@param tags 設定する tag directive の配列
@see Psych::Nodes::Document#tag_directives,
Psych::Nodes::Document.new... -
Psych
:: Nodes :: Scalar # tag=(t) (6132.0) -
scalar に付加された tag を変更します。
...scalar に付加された tag を変更します。
@param t 設定する tag
@see Psych::Nodes::Scalar#tag,
Psych::Nodes::Scalar.new... -
Psych
:: Nodes :: Document # tag _ directives -> [[String , String]] (6126.0) -
tag directive の配列を返します。
...tag directive の配列を返します。
@see Psych::Nodes::Document#tag_directives=,
Psych::Nodes::Document.new... -
Psych
:: Nodes :: Mapping # tag=(t) (6126.0) -
mapping に付加する tag を設定します。
...mapping に付加する tag を設定します。
@param t 設定する tag
@see Psych::Nodes::Mapping#anchor=,
Psych::Nodes::Mapping.new... -
Psych
:: Nodes :: Sequence # tag=(t) (6126.0) -
sequence に付加する tag を設定します。
...sequence に付加する tag を設定します。
@param t 設定する tag
@see Psych::Nodes::Sequence#anchor=,
Psych::Nodes::Sequence.new... -
Psych
:: Handler # start _ document(version , tag _ directives , implicit) -> () (164.0) -
YAML ドキュメントの始まりで呼び出されます。
...ajor, minor] という配列で渡されます。宣言がない場合は空の配列が渡されます。
tag_directives には tag directive の配列が渡されます。
それぞれの tag は [prefix, suffix] という配列で表現されます。
implicit にはドキュメントが implic......ください。
@param version バージョン
@param tag_directives tag directive の配列
@param implicit ドキュメントが implicit に始まっているかどうか
=== 例
以下の YAML に対しては
%YAML 1.1
%TAG ! tag:tenderlovemaking.com,2009:
--- !squee
start_document に......りです
version # => [1, 1]
tag_directives # => tenderlovemaking.com,2009:"
implicit # => false
以下の YAML に対しては
- x
- y
start_document に渡される引数は以下の通りです。
version # => []
tag_directives # => []
implicit #...