From: cdc@...2go.com (Cliff Cyphers) Date: 2006-06-10T09:45:55+09:00 Subject: Re: rubyzip not recognized --pvezYHf7grwyp3Bc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 10, 2006 at 09:41:44AM +0900, lisa umeda wrote: > Hello. >=20 > I have downloaded and installed rubyzip successfully. However, Ruby=20 > does not recognize any of its classes. >=20 > The following is the code that I used (for practice): >=20 > def getfiles (zipFileName) > Zip::ZipFile.open(zipFileName, Zip::ZipFile::CREATE) > Zip::ZipFile.foreach(zipFileName) do |file| > placeFile(path_to_file, file) > end > end >=20 > ..and this is the error that I received: >=20 > test.rb:27:in `getfiles': uninitialized constant Song::Zip (NameError) > from test.rb:55 >=20 > Not sure if I used the classes and/or methods correctly, but it does not= =20 > seem to recognize Zip or ZipFile. >=20 > Can someone please tell me what I can do to fix this problem? in the above snip doesn't show inclusion of the zip lib: require 'zip/zip' --pvezYHf7grwyp3Bc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFEihZApXfXwRYlDA0RAr84AJ9IrBPwJWNbra3yX2Lj2nrMduvz9QCfZ4c/ vYB9L+4qDfHzrLX3QisgSzU= =dddI -----END PGP SIGNATURE----- --pvezYHf7grwyp3Bc--