Hello --

On Fri, 19 Jul 2002, Bob X wrote:

> Why does Ruby do single quotes around package names?

It doesn't have to be single quotes -- it can be double quotes or any
other quoting mechanism, or a variable, as long as it evaluates to a
string.

> Why not just:
>
> require somepackage

require and load are looking for files, so (even though there's a bit
of magic involved in searching and adding extensions) basically what's
needed is a string.

When you get to the 'include' stage, you generally supply an actual
module name, not quoted:

  include SomeModule


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav