I would like to define the variable @@importers when my module loads.
module Importers
@@importers_dir = File.dirname(__FILE__) + '/services/'
@@importers = self.load_and_instantiate()
def self.load_and_instantiate()
#mycode here
end
end
But it does not work :
undefined method 'load_and_instantiate' for Importers:Module (NoMethodError)
How should I handle this ?
Thanks !