-----BEGIN PGP SIGNED MESSAGE-----
When writing libraries for other programs to use
is it better to include any outside requirements
within the Class definition or outside it? i.e.
[1]
require "foo"
Class Bar
end
or
[2]
Class Bar
require "foo"
end
If my understanding is correct, 2 is politer in that you
don't pollute the global namespace with the class defines in
foo. But I most often see [1] in existing ruby libraries. Is
there more to this than I understand?
- - Booker C. Bense
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBPUm1tQD83u1ILnWNAQHl3gQAk+/svmCyZKYJUYv1rbXH5prCcTf585Mc
Tai789xKPUEk8GybFHPP3UAdcpjtZUEdnlH1DxpGDZz7XNSAJoq/QymFy2LWESjx
pQ/cSFH0kfzmq5DmN8LeB8zOZT8sgpMPGi7pDdFOG9OIxzq/qYGv2OPAP+sP6Beg
5B7JcbYSr1E=
=W+UG
-----END PGP SIGNATURE-----
--