--nextPart5254935.2pq4zl0mjA
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Friday 10 August 2007 09:51:55 am Pokkai Dokkai wrote:
> how to execute a ruby program which is inside a string ?
> for example
> ex.rb
>=20
> puts "start "
> temp=3D"(1..10).each do |count| print count  end "
> puts "end"
>=20
>=20
> how to execute the source code in temp(String object)

eval(string), but this is always what NOT-WHAT-YOU-WANT-TO-DO.

=2D-=20
Konrad Meyer <konrad / tylerc.org> http://konrad.sobertillnoon.com/

--nextPart5254935.2pq4zl0mjA
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBGvL1UCHB0oCiR2cwRAoFlAJ9vAWK4NYjPAqU0C8L5aH+TbsH3uwCbBRhH
M/uoPwqTUqjzWEO1oX8lVzI=
=udrY
-----END PGP SIGNATURE-----

--nextPart5254935.2pq4zl0mjA--