Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Psych::Handler#end_document
end_document(implicit)
ext/psych/lib/psych/handler.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/ext/psych/lib/psych/handler.rb, line 93
def end_document implicit
end
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.