YAML question - substitution

  • Thread starter Anthony Elizondo
  • Start date
A

Anthony Elizondo

I am trying to create the following:

{ 'a' =3D> 'happy', 'b' =3D> 'happy birthday', 'c' =3D> '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?
 
E

Eric Hodel

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/refcard.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,200
Messages
2,571,046
Members
47,646
Latest member
xayaci5906

Latest Threads

Top