Forum: Ruby on Rails Modules and classes

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Cee5f57dec08a6e547f6e209393d9c63?d=identicon&s=25 George Palmer (georgepalmer)
on 2007-04-13 22:33
I have a module that has a hash of classes and a few methods.  For

SERVICES[Services::ServiceA::SERVICE_A_UNIQUE_ID] = Services::ServiceA
SERVICES[Services::ServiceB::SERVICE_B_UNIQUE_ID] = Services::ServiceB

This module is then included in various controllers and models where its
functionality is required.

My question is relating to performance.  For every class the module is
merged into is another class ServiceA, ServiceB created?  These are not
instances so I think not, but just want to check.


This topic is locked and can not be replied to.