Method: Psych::Emitter#start_document

Defined in:
ext/psych/psych_emitter.c

#start_document(version, tags, implicit) ⇒ Object

Start a document emission with YAML version, tags, and an implicit start.

See Psych::Handler#start_document



237
238
239
240
241
242
243
244
245
246
247
248
249
# File 'ext/psych/psych_emitter.c', line 237

static VALUE start_document(VALUE self, VALUE version, VALUE tags, VALUE imp)
{
    struct start_document_data data = {
        .self = self,
        .version = version,
        .tags = tags,
        .imp = imp,

        .head = NULL,
    };

    return rb_ensure(start_document_try, (VALUE)&data, start_document_ensure, (VALUE)&data);
}