# YAML in 1.8.3 and 1.8.4

**URL:** <https://www.ruby-forum.com/t/yaml-in-1-8-3-and-1-8-4/98478>\
**Category:** Ruby\
**Created:** [January 29, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/yaml-in-1-8-3-and-1-8-4/98478 "2006-01-29T17:21:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackedder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@blackedder](https://www.ruby-forum.com/u/blackedder)\
**Post date:** [January 29, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/yaml-in-1-8-3-and-1-8-4/98478/1 "2006-01-29T17:21:03Z")

</div>

Hi guys,

I’m trying to learn the usage of yaml from:  
[http://yaml4r.sourceforge.net/doc/](http://yaml4r.sourceforge.net/doc/) and keep getting problems. The  
biggest problem seems to be that the — separator isn’t included  
anymore. For example:  
irb(main):009:0\> puts( true.to\_yaml )  
true

instead of the documented:  
puts( true.to\_yaml )

# prints:

# — true

This makes it harder to just dump data to a file and load it later. I  
reverted back to ruby 1.8.2 and there everything seems to be working  
normally. I looked at the rdoc of 1.8.4 and all over the web and they  
all indicate that the former behaviour is the correct one. Is this a bug  
or has something changed? Is there a better/correct way of dumping a lot  
of different objects to a file?

Greetings,  
Edwin

---

<div class="post-metadata">

**Author:** ![blackedder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@blackedder](https://www.ruby-forum.com/u/blackedder)\
**Post date:** [January 29, 2006, 5:27pm UTC](https://www.ruby-forum.com/t/yaml-in-1-8-3-and-1-8-4/98478/2 "2006-01-29T17:27:50Z")

</div>

On Jan 29, 2006, at 10:21 AM, Edwin van Leeuwen wrote:

> puts( true.to\_yaml )
> 
> # prints:
> 
> # — true
> 
> This makes it harder to just dump data to a file and load it later. I  
> reverted back to ruby 1.8.2 and there everything seems to be working  
> normally. I looked at the rdoc of 1.8.4 and all over the web and they  
> all indicate that the former behaviour is the correct one. Is this  
> a bug  
> or has something changed?

This was a common problem with Ruby 1.8.3, but it has been fixed in  
Ruby 1.8.4.

James Edward G. II

---

<div class="post-metadata">

**Author:** ![blackedder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@blackedder](https://www.ruby-forum.com/u/blackedder)\
**Post date:** [January 29, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/yaml-in-1-8-3-and-1-8-4/98478/3 "2006-01-29T17:45:37Z")

</div>

> This was a common problem with Ruby 1.8.3, but it has been fixed in  
> Ruby 1.8.4.
> 
> James Edward G. II  
> Ops excuse my stupidity, I was sure I was already running ruby 1.8.4,  
> but apparently I had not upgraded my laptop yet.

Edwin
