T. Onoma
10/12/2004 5:27:00 PM
On Tuesday 12 October 2004 01:16 pm, James F. Hranicky wrote:
| On Tuesday 12 October 2004 13:10, James F. Hranicky wrote:
| > Name : myserv
| > Ether : 00:00:00:00:00:02
| > Arch : x86
| > OS : linux
|
| [del]
|
| > % ruby /tmp/x.rb /tmp/x.yaml x2
| > [{"Name"=>"myserv", "Arch"=>"x86", "OS"=>"linux", "Ether"=>2}]
|
| Drat -- I just noticed the ethernet address was interpreted as
| 2 as well. I don't suppose there's an easy way to just tell YAML
| to not do any conversions, is there?
Looky, looky! Someone wants option #1 ;)
Sorry, inside joke from yaml mailing list --you can put quotes around them or
(maybe) preface with !str.
Ether : '00:00:00:00:00:02'
or
Ether : !str 00:00:00:00:00:02
T.