From: "Michael C. Libby" Date: 2002-12-02T02:44:58+09:00 Subject: Re: module vs. Library -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 01 December 2002 09:42, Shannon Fang wrote: > A simple question, when I read through the document, the term library > and module pops up here and there. I know what a module is, but what is > a library? Others will correct me if I'm wrong, but as I understand it: a Module is an actual Ruby construct... essentially a class with no instances. A library is a container file for bits of code. You would load the library using a command like: require 'my_lib' The library file, my_lib.rb, could contain a Module or a Class or more than one of either or both. The program treats required files as though you had typed them in then and there. -michael -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE96kov4ClW9KMwqnMRAsSGAJ46aRFreaiu+LSESN8c5wXaSrqxjwCeLaz6 saozQevr3PGc2ne1aXp7vuw= =wHqI -----END PGP SIGNATURE-----