From: Peter Hickman Date: 2013-03-13T21:57:58+09:00 Subject: Re: cannot get blocks working --047d7b621b1457ce4f04d7cdf4ba Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Ah heres the issue then: x =3D XmlDoc.new p x.hello p x.hello{ "dolly" } gives "" "" but x =3D XmlDoc.new p x.hello{ "dolly" } p x.hello gives "dolly" "dolly" This also sort of happens for Aashish's code as well x =3D XmlDoc.new p x.hello p x.hello{ "dolly" } gives "" "" and x =3D XmlDoc.new p x.hello{ "dolly" } p x.hello "dolly" NoMethodError: undefined method =91call=92 for nil:NilClass --047d7b621b1457ce4f04d7cdf4ba Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Ah heres the issue then:

x =3D Xml= Doc.new
p x.hello
p x.hello{ "dolly" }
<= /div>

gives

<= div> "<hello></hello>"
"<hello></h= ello>"

but=A0

x =3D XmlDoc.new
p x.hello{ "dolly"= }
p x.hello

gives

"<hello>dolly</hello>"
&= quot;<hello>dolly</hello>"

This also sort of happens for Aashish's code as well

x =3D XmlDoc.new
p x.hello
p x.hello{ = "dolly" }

gives

"<hello></hello>"
"<= hello></hello>"

and=A0

x =3D XmlDoc.new
p x.hel= lo{ "dolly" }
p x.hello

"<hello>= ;dolly</hello>"
NoMethodError: undefined method =91cal= l=92 for nil:NilClass
--047d7b621b1457ce4f04d7cdf4ba--