るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.097秒)

別のキーワード

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

ライブラリ

クラス

検索結果

Psych::Handler#start_mapping(anchor, tag, implicit, style) -> () (24308.0)

mapping の開始を見付けたときに呼び出されます。

...されます。

t
ag には map に関連付けられた tag の名前が文字列で渡されます。
t
ag がない場合には nil が渡されます。

implicit には map が implicit に開始されたかどうかが
真偽値で渡されます。

style には sequence の style が整数値...
...ソッドを override してください。

@param anchor 関連付けられた anchor の名前
@param tag タグ名
@param implicit mapping が implicit に開始されかどうか
@param style mapping のスタイル

=== 例

以下の YAML ドキュメントを例として考えます。

--...
...
start_mapping
メソッドは 順に以下の引数で呼び出されます。

# anchor tag implicit style
[nil, nil, true, 1 ]
[nil, "tag:yaml.org,2002:map", false, 2 ]
["pewpew", nil, true...