Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Psych::Emitter#start_document
emitter.start_document(version, tags, implicit)
ext/psych/psych_emitter.c
View on GitHub ↗
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);
}
Start a document emission with YAML version, tags, and an implicit start.
See also
#scalar
#start_mapping
#line_width=
#start_sequence
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0