YAML uses three dashes ("---") to separate directives from the contents of a document. It also serves to signal the start of a document if there are no directives.
So, if you have several documents per YAML file, you should separate them into three dashes. If you have only one document, you can delete / omit it (I never had a problem with YAML in ruby if three dashes were missing). The reason she added when you yamlify your object is that, I think, the dump truck is written “by specification” and does not want to implement such “shortcuts” (omitted three times when it is only one document).
source share