B
braver
YAML writes out Ruby symbols as !ruby/sym, e.g. :name => 'John'
becomes
!ruby/sym name: John
I write out megabytes of data, so I played with replacing !ruby/sym
with a simple colon:
:name: John
-- and it gets loaded back just as the !ruby/sym version!
Is there a way to instruct YAML to dump plain colon ':' instead of "!
ruby/sym "? Is reading back my version a guaranteed behavior?
Cheers,
Alexy
becomes
!ruby/sym name: John
I write out megabytes of data, so I played with replacing !ruby/sym
with a simple colon:
:name: John
-- and it gets loaded back just as the !ruby/sym version!
Is there a way to instruct YAML to dump plain colon ':' instead of "!
ruby/sym "? Is reading back my version a guaranteed behavior?
Cheers,
Alexy