DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Lance has posted 24 posts at DZone. View Full User Profile

Force Ruby YAML To Format Inline Array

09.16.2010
| 3265 views |
  • submit to reddit
        http://stackoverflow.com/questions/1054730/is-it-possible-to-specify-formatting-options-for-to-yaml-in-ruby

class Array
  def to_yaml_style
    :inline
  end
end