method

to_yaml

Importance_1
v1_8_7_330 - Show latest stable - 1 note - Class: Array

Not found

The exact documentation you were looking for could not be found. Here is the best guess.

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