# Use module or class with a container that holds only object references?

**URL:** <https://www.ruby-forum.com/t/use-module-or-class-with-a-container-that-holds-only-object-references/120307>\
**Category:** Ruby\
**Created:** [November 15, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/use-module-or-class-with-a-container-that-holds-only-object-references/120307 "2007-11-15T18:10:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [November 15, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/use-module-or-class-with-a-container-that-holds-only-object-references/120307/1 "2007-11-15T18:10:55Z")

</div>

Hi,

I have a number of object references that I need to use in most if not  
all of my classes.

Would it be better to hold them in a separate class and instantiate  
the class and reference the object in the rest of the classes, or use  
a module?

Thanks

Aidy
