From: meruby@... Date: 2005-05-15T05:00:30+09:00 Subject: How to output inline list by to_yaml require 'yaml' l = [1, 2, 3] l.to_yaml => "--- \n- 1\n- 2\n- 3\n" How can I get inline list so that output of to_yaml will be => "--- [1, 2, 3]"