On 2/19/07, Pit Capitain <pit / capitain.de> wrote:
> #include allows you to include the methods of *modules* into your
> current class. Often the included modules come from previously required
> files, so you often see a sequence like this:
>
>    require <name-of-file>
>
>    class MyClass
>      include <module-defined-in-file-loaded-above>
>    end

Note as well that the name-of-file need not have anything to do with
the modules or classes using in the include statement.

Strictly speaking, require and load work on resources. Just because
current Ruby uses files does not mean that other mechanisms can't be
used; some folks have extended #require with open-uri and there's
nothing that stops anyone from looking in tar files or zip files for
files to load.

-austin
-- 
Austin Ziegler * halostatue / gmail.com * http://www.halostatue.ca/
               * austin / halostatue.ca * http://www.halostatue.ca/feed/
               * austin / zieglers.ca