Forum: Ruby YAML question - substitution

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0fd334c46e284c02d4622a8ac429b236?d=identicon&s=25 anthony.elizondo (Guest)
on 2005-12-08 23:44
(Received via mailing list)
I am trying to create the following:

{ 'a' => 'happy', 'b' => 'happy birthday', 'c' => 'happy new year'}

Can YAML do this? I have something like:

a: &first happy
b: *first<<birthday
c: *first.concat('new year')

neither of which work.

Any ideas?
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 drbrain (Guest)
on 2005-12-09 02:52
(Received via mailing list)
On Dec 8, 2005, at 2:44 PM, Anthony Elizondo wrote:

> neither of which work.
> Any ideas?

YAML is just a serialization format:

Eric Hodel - -
This implementation is HODEL-HASH-9600 compliant
This topic is locked and can not be replied to.