Flowdock
method

to_yaml

Importance_1
v1_9_1_378 - Show latest stable - 1 note - Class: Array
to_yaml( opts = {} ) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Show source
Register or log in to add new notes.
August 3, 2009 - (v1_8_6_287)
0 thanks

Using YAML

YAML library must be required.


Example to display an array as yaml formatted output

require 'yaml'

puts [100, [99, 98, 97], 96, 95].to_yaml