I have a class in Ruby with some static initialization like this:
class Repository
def self.my_static_setup
....
end
my_static_setup
...
end
The code above works fine, and my custom static initializer gets called, the problem is whenever I inherit this class:
class PersonRepository
...
end
The static initialization is not inherited, and therefore not called. What am I doing wrong?