Read more here
To regenerate simple array
>> test_obj = ["blah","blah"]
=> ["blah", "blah"]
>> YAML::dump test_obj
# produces
---
- blah
- blah
How about something HARD
>> test_obj = Hash.new
=> {}
>> test_obj[:production] = {}
=> {}
>> test_obj[:production][:main] = [["margin_rates", []], ["credit_tier_editor", ["show"]], ["override_editor", ["show","new"]]]
=> [["margin_rates", []], ["credit_tier_editor", ["show"]], ["override_editor", ["show", "new"]]]
YAML::dump test_obj
# produces
---
:production:
:main:
- - margin_rates
- []
- - credit_tier_editor
- - show
- - override_editor
- - show
- new