るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.116秒)
トップページ > クエリ:t[x] > クエリ:start_doc[x] > 種類:インスタンスメソッド[x] > クラス:Psych::Handler[x]

別のキーワード

  1. smtp start
  2. net/smtp start
  3. pop start
  4. http start
  5. pop3 start

ライブラリ

検索結果

Psych::Handler#start_document(version, tag_directives, implicit) -> () (12302.0)

YAML ドキュメントの始まりで呼び出されます。

...がない場合は空の配列が渡されます。

t
ag_directives には tag directive の配列が渡されます。
それぞれの tag は [prefix, suffix] という配列で表現されます。

implicit にはドキュメントが implicit に始まっているかどうかが
真偽値で渡...
...version バージョン
@param tag_directives tag directive の配列
@param implicit ドキュメントが implicit に始まっているかどうか

=== 例

以下の YAML に対しては
%YAML 1.1
%TAG ! tag:tenderlovemaking.com,2009:
--- !squee
start_doc
ument に渡される引数は以...
...version # => [1, 1]
t
ag_directives # => tenderlovemaking.com,2009:"
implicit # => false

以下の YAML に対しては
- x
- y
start_doc
ument に渡される引数は以下の通りです。
version # => []
t
ag_directives # => []
implicit # => true...