るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.017秒)
トップページ > クエリ:implicit[x] > クエリ:start_document[x]

別のキーワード

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

ライブラリ

検索結果

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

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

...ます。

implicit
にはドキュメントが implicit に始まっているかどうかが
真偽値で渡されます。

必要に応じてこのメソッドを override してください。


@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
# => true...

Psych::Nodes::Document.new(version=[], tag_directives=[], implicit=false) -> Psych::Nodes::Document (137.0)

Document オブジェクトを生成します。

...現します。

implicit
にはドキュメントが implicit に始まっているかどうかを
真偽値で指定します。

@param version YAML ドキュメントのバージョン
@param tag_directives tag directive の配列
@param implicit ドキュメントが implicit に始まってい...
...YAML 1.1 のドキュメントで、
tag directive を1つ持ち、 implicit にドキュメントが開始
している Document オブジェクトを生成しています。

Psych::Nodes::Document.new(
[1,1],
tenderlovemaking.com,2009:",
true)

@see Psych::Handler#start_document...