M
meruby
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]"
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]"