[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

YAML question - substitution

Anthony Elizondo

12/8/2005 10:45:00 PM

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?


1 Answer

Eric Hodel

12/9/2005 1:51:00 AM

0

On Dec 8, 2005, at 2:44 PM, Anthony Elizondo wrote:

> 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?

YAML is just a serialization format:

http://yaml.org/re...

--
Eric Hodel - drbrain@segment7.net - http://se...
This implementation is HODEL-HASH-9600 compliant

http://trackmap.rob...