End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Psych::Emitter#end_document
emitter.end_document(implicit)
ext/psych/psych_emitter.c
View on GitHub ↗
static VALUE end_document(VALUE self, VALUE imp)
{
yaml_emitter_t * emitter;
yaml_event_t event;
TypedData_Get_Struct(self, yaml_emitter_t, &psych_emitter_type, emitter);
yaml_document_end_event_initialize(&event, imp ? 1 : 0);
emit(emitter, &event);
return self;
}
End a document emission with an implicit ending.
See also
#canonical=
#end_mapping
#canonical
#end_sequence
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0