From: David Vallner Date: 2006-11-12T00:03:27+09:00 Subject: Re: Loading, CGI and some aother questions --------------enigCAF18AC76924FE82294A9AC6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Gambler Gluck wrote: > Hello. >=20 > I'm learning Ruby right now, and I have couple of questions about it. >=20 > 1. What is the best way to store configs for ruby programs? Is there a = way to include an rb file with data structure so that it is assigned to s= ome variable in the including code? If there is such a way, would it be w= orse than using YAML serialization or better? >=20 The sourcing a .rb file is more flexible, however you risk code injection that way. Usual considerations apply. David Vallner --------------enigCAF18AC76924FE82294A9AC6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFVeZny6MhrS8astoRAgFYAJ9uatkkgXJVweBa+j2VSMqwp4KJigCfaj3t WGgwqPnHut7ScRXCjQIE17g= =DDeq -----END PGP SIGNATURE----- --------------enigCAF18AC76924FE82294A9AC6--