Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Psych::Handler#end_document

end_document(implicit)

Called with the document ends. implicit is a boolean value indicating whether or not the document has an implicit ending.

Example

Given the following YAML:

---
  hello world

implicit will be true. Given this YAML:

---
  hello world
...

implicit will be false.

See also #empty #end_mapping #alias #end_sequence also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1