I
Iñaki Baz Castillo
Hi, when I convert a Hash to a YAML object and print it a line "---" is add=
ed=20
at the beginning:
=2D--------------------------------------------------------
cli> require 'yaml'
cli> puts({1=3D>2,"ABC" =3D> {"a"=3D>"A","b"=3D>"B"}}.to_yaml)
---
ABC:
a: A
b: B
1: 2
=3D> nil
=2D--------------------------------------------------------
Well, how could I hide that annoyin "---" line? Maybe using "grep" in some=
=20
way? other suggestion?
Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo
ed=20
at the beginning:
=2D--------------------------------------------------------
cli> require 'yaml'
cli> puts({1=3D>2,"ABC" =3D> {"a"=3D>"A","b"=3D>"B"}}.to_yaml)
---
ABC:
a: A
b: B
1: 2
=3D> nil
=2D--------------------------------------------------------
Well, how could I hide that annoyin "---" line? Maybe using "grep" in some=
=20
way? other suggestion?
Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo