# How to use to\_yaml\_style?

**URL:** <https://www.ruby-forum.com/t/how-to-use-to-yaml-style/136911>\
**Category:** Ruby\
**Created:** [May 7, 2008, 10:55am UTC](https://www.ruby-forum.com/t/how-to-use-to-yaml-style/136911 "2008-05-07T10:55:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinwoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Post date:** [May 7, 2008, 10:55am UTC](https://www.ruby-forum.com/t/how-to-use-to-yaml-style/136911/1 "2008-05-07T10:55:29Z")

</div>

I search on Google a bit, I only found this usage:

def a.to\_yaml\_style  
:fold  
end

What is the other to\_yaml\_style can I use?
