it should be like this(line 39) under my env.

because to_yaml output is started with

"---\n" instead with "--- \n"

under my circumstance.